eris2206

Documentation: http://frombelow.net/projects/eris2206/
Clone: git clone https://git.frombelow.net/eris2206.git
Log | Files | Refs | Submodules | README | LICENSE

rom_leds.asm (271B)


      1 #define LEDS $FD
      2 #define START_VALUE $00
      3 #define COUNTER $01
      4     .set_address $80
      5     LDA   #$20
      6     STA   START_VALUE
      7 start:
      8     LDA   START_VALUE
      9     STA   COUNTER
     10 loop:
     11     LDA   COUNTER
     12     ADD   #$FF
     13     STA   COUNTER
     14     STA   LEDS
     15     JNZ   :loop
     16     JZE   :start