0 Members and 2 Guests are viewing this topic.
Level3copyInt LD HL, Buf1 + 767 LD DE, Buf2 + 767 PUSH HL PUSH DE LD C, $10 LD A, $04 ;this uses Y auto-decrement mode ;) OUT (C), A LD B,64 LD A,12 PUSH AF@ ;set to last row.db $ED,$70 JP M,{-1@} OUT (C), $BF@ ;set to last column.db $ED,$70 ;IN F, (C) JP M,{-1@} OUT (C), $2E LD A,12 PUSH AF@ LD A, (HL) AND %10101010 DEC HL PUSH HL PUSH AF LD A, (DE) AND %01010101 DEC DE POP HL OR H POP HL@.db $ED,$70 ;IN F, (C) JP M,{-1@} OUT ($11),A POP AF PUSH AF EX DE, HL DEC A CP $00 JR Z,{-2@} DJNZ {-3@}@ RET
A note: the in f,(c) opcode is undocumented. If you use it, you don't have to worry about the grayscale looking bad on the Nspire's screen, because this opcode will straight-up fail on it.
I think thepenguin made a few grayscale libraries before however, I don't think there are very many 8 level game besides chips challenge (by calc84) -- and definately NO 16 level ones.
PUSH BCPUSH AFIN B, (C)POP AFPOP HLJP M, {-1@}LD BC, HL