ok me and tanner were working on this i want to compile a simple program to decompress and print some data heres the latest error
Code:
Code:
Code:
----------------------------------
Doors CS Assembler\Compiler
Version 2.0
Written by Kerm Martian
http:\\www.Cemetech.net
----------------------------------
----- Assembling decomp for the TI-83/84 Plus...
Brass Z80 Assembler 1.0.4.11 - Ben Ryves 2005-2006
--------------------------------------------------
Assembling...
Pass 1 complete. (2233ms).
Error: Could not parse expression 'SpriteCount' (Invalid number). [zztemp.asm:7]
Error: Could not parse expression 'gbuf' (Invalid number). [zztemp.asm:10]
Error: Could not parse expression 'iPutScreen' (Invalid number). [zztemp.asm:12]
Error: Could not parse expression 'common_array' (Invalid number). [zztemp.asm:4
6]
Error: Could not parse expression 'common_array&255' (Invalid number). [zztemp.a
sm:84]
Error: Could not parse expression '(common_array>>8)&255' (Invalid number). [zzt
emp.asm:86]
Pass 2 complete. (1422ms).
Errors: 6, Warnings: 0.
Build failed.
--+=====================+--
--| BinPac8x v1.2 |--
--| by Kerm Martian |--
--| www.Cemetech.net |--
--| admin@cemetech.net |--
--+=====================+--
**Pass 1/1: .8xp Construction**
Error: Input file decomp.bin was not found!
Total time: 0.0s
----- decomp for the TI-83/84 Plus Assembled and Compiled.
TI-83 Plus version is decomp.8xp
Could Not Find C:\dwedit\asm\exec\decomp.bin
Code:
#INCLUDE TI83plus.inc
LD hl,myCompressedData
LD de,AppBackupScreen
LD b,SpriteCount ;*shrug*
call decomp
LD bc,767
LD de,gbuf
Ldir
call iPutScreen ;Whichever one copies gbuf to the screen >.>
ret
decomp:
LD C, %10000000
DEC HL
dc_mainloop
PUSH BC
LD B, %00011111
CALL IsBit
JR C, dc_switch
SET 5, B
JR dc_innerloop
dc_switch:
LD A, 1
CALL IsBit
JR C, dc_other
RES 4, B
CALL IsBit
JR C, dc_getcommon
SET 7, B
JR dc_innerloop
dc_other:
ADD A, A
CALL IsBit
JR NC, dc_getcommon
ADD A, A
SET 6, B
dc_getcommon:
PUSH BC
PUSH DE
LD B, A
LD DE, common_array
dc_getloop:
CALL GetByte
LD (DE), A
INC DE
DJNZ dc_getloop
POP DE
POP BC
; BIT 6, B
; JR NZ, dc_assume0
dc_innerloop:
BIT 7, B
JR NZ, dc_raw
LD A, %01000000
BIT 6, B
JR NZ, dc_common
CALL IsBit
JR NC, dc_raw
BIT 5, B
JR NZ, dc_fill
RLCA
CALL IsBit
JR C, dc_common
dc_fill:
CALL IsBit
SBC A, A
JR dc_output
dc_raw:
CALL GetByte
JR dc_output
dc_common:
BIT 4, B
JR NZ, dc_multiple
dc_assume0:
XOR A
dc_multiple:
CALL NZ, GetBits
PUSH DE
ADD A, common_array&255
LD E, A
ADC A, (common_array>>8)&255
SUB E
LD D, A
LD A, (DE)
POP DE
dc_output:
LD (DE), A
INC DE
DEC B
BIT 3, B
JR NZ, dc_innerloop
POP AF
LD B, A
DJNZ dc_mainloop
dc_finish:
RLC C
RET C
RLC (HL)
JR dc_finish
IsBit:
RLC C
JR NC, dc_stay
INC HL
dc_stay:
RLC (HL)
RET
GetByte:
LD A, %00000001
GetBits:
CALL IsBit
RLA
JR NC, GetBits
RET
myCompressedData:
.db 27
.db %01010101,%00111100,%00101000,%00100001,%10100010,%00000100,%00110100
.db %10011111,%01000110,%01100111,%10011110,%01110100,%10100010,%01001110
.db %00010000,%10010100,%10010011,%11010010,%00010010,%00010010,%10010001
.db %01000010,%01000010,%00001110,%01110110,%00110001,%11000000