Revision bdeb79e8-71f3-4b35-b24c-84103b240918 - Code Golf Stack Exchange

#[C64 Machine Code](http://www.commodore.ca/manuals/c64_programmers_reference/c64-programmers_reference_guide-05-basic_to_machine_language.pdf), 2 Bytes

 D0 FE

Branches to itself if the zero flag is not set.

Branches are single-byte offsets from the next instruction location, and 254 is -2 in two's complement... the BNE instruction (D0) takes one byte of memory, and the offset takes a second byte, so branching two bytes back branches back to itself. The zero flag is always cleared when code is loaded into memory. 

Note that this is not a recursive subroutine call, so you will never run out of memory. Also note that there is no header, compiler, or executable overhead... it is truly a two-byte program :)


 [1]: http://asdfas

AltStyle によって変換されたページ (->オリジナル) /