Code:
#include "../tasm/ti84pce.inc"
.org userMem-2
.db tExtTok,tAsm84CeCmp
Start:
call _homeup
call _ClrScrnFull
call create1555Palette
ld hl, FullImage
ld de, VRAM
ld bc, FullImageEnd-FullImage
ldir
call getKey
ret
create1555Palette:
ld hl,mpLcdPalette
ld b,0
_cp1555Loop:
ld d,b
ld a,b
and a,%11000000
srl d
rra
ld e,a
and a,%00011111
and a,b \ or a,e
ld (hl),a \ inc hl
ld (hl),d \ inc hl
inc b
jr nz,_cp1555Loop
call _boot_ClearVRAM
ld a,lcdbpp8
ld (mpLcdCtrl),a
ret
FullImage:
an 80x60 sprite
FullImageEnd:
.end
.END
I'm getting the following errors:
Code:
Brass Z80 Assembler 1.0.4.11 - Ben Ryves 2005-2006
--------------------------------------------------
Assembling...
Pass 1 complete. (830ms).
Warning: Data overflows 64KB page limit.
Error: Could not parse expression 'a,%11000000' (Invalid number). [zztemp.asm:27]
Error: Could not parse expression 'a,%00011111' (Invalid number). [zztemp.asm:31]
Error: Could not parse expression 'a,b' (Invalid number). [zztemp.asm:32]
Error: Could not parse expression 'a,e' (Invalid number). [zztemp.asm:32]
Error: Range of relative jump exceeded. (13697003 bytes) [zztemp.asm:36]
Pass 2 complete. (810ms).
Errors: 5, Warnings: 1.
Build failed.
----- There were errors.
What the heck? I don't get why the first 4 are wrong? or even the latter.