dos33fsprogs/pt3_player
2019-05-13 16:48:47 -04:00
..
dump.bas pt3: update dumper to print to printer 2019-05-13 16:18:26 -04:00
EA.PT3 pt3: compiles at least 2019-05-06 20:31:10 -04:00
empty.dsk pt3: add initial pt3_player 2019-05-06 20:16:45 -04:00
gr_fast_clear.s pt3: start implementing things 2019-05-07 00:28:42 -04:00
HELLO pt3: start implementing things 2019-05-07 00:28:42 -04:00
hello.bas pt3: update dumper to print to printer 2019-05-13 16:18:26 -04:00
interrupt_handler.s pt3: copy more code in 2019-05-07 15:11:52 -04:00
Makefile pt3: update dumper to print to printer 2019-05-13 16:18:26 -04:00
pt3_dumper.s pt3: update dumper to print to printer 2019-05-13 16:18:26 -04:00
pt3_lib.s pt3: another small typo 2019-05-13 16:48:47 -04:00
pt3_player.dsk pt3: start implementing things 2019-05-07 00:28:42 -04:00
pt3_player.s pt3: temporarily bump up to $3000 as getting too big 2019-05-12 22:17:03 -04:00
qkumba_rts.s pt3: start implementing things 2019-05-07 00:28:42 -04:00
README.pt3 pt3: fix an issue with signed 8-bit comparisons 2019-05-13 12:33:52 -04:00
song_list.inc pt3: start implementing things 2019-05-07 00:28:42 -04:00
text_print.s pt3: add initial pt3_player 2019-05-06 20:16:45 -04:00
TODO pt3: start implementing things 2019-05-07 00:28:42 -04:00
zp.inc pt3: forgot to update zero page 2019-05-13 14:02:16 -04:00

PT3_player



ASR = CMP #$80 / ROR



Notes:

signed 8-bit comparison
see http://6502.org/tutorials/compare_beyond.html#2.2

          SEC       ; prepare carry for SBC
          SBC NUM   ; A-NUM
          BVC LABEL ; if V is 0, N eor V = N, otherwise N eor V = N eor 1
          EOR #$80  ; A = A eor $80, and N = N eor 1
    LABEL

If the N flag is 1, then A (signed) < NUM (signed) and BMI will branch
If the N flag is 0, then A (signed) >= NUM (signed) and BPL will branch