git @ Cat's Eye Technologies Befunge-93 / 33a92ae
Better descriptions for `.` and `,` in Appendix A. (h/t @j4james) Chris Pressey 4 years ago
1 changed file(s) with 6 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
99 Chris Pressey, Cat's Eye Technologies
1010 *Original document September, 1993*
1111 *Updated December, 1996*
12 *Updated Yet Again September, 2004*
13 *Converted from HTML to Markdown August 2012*
12 *Updated Yet Again September, 2004*
13 *Converted from HTML to Markdown August 2012*
14 *Updated for Silver Jubilee, 2018*
1415
1516 ### The Basics of Befunge-93 ###
1617
251252 : (dup) <value> <value> <value>
252253 \ (swap) <value1> <value2> <value2> <value1>
253254 $ (pop) <value> pops <value> but does nothing
254 . (pop) <value> outputs <value> as integer
255 , (pop) <value> outputs <value> as ASCII
255 . (output int) <value> outputs <value> as integer
256 , (output char) <value> outputs <value> as ASCII
256257 # (bridge) 'jumps' PC one farther; skips
257258 over next command
258259 g (get) <x> <y> <value at (x,y)>
259260 p (put) <value> <x> <y> puts <value> at (x,y)
260 & (input value) <value user entered>
261 & (input int) <value user entered>
261262 ~ (input character) <character user entered>
262263 @ (end) ends program
263264