With the goal of learning how to use the DCS_SDK, I decided to make a simple program for the job.
Here's what happened, I tried compiling (compile myfile.z80) and everything was OK, however, the assembled programs (when opened with WabbitEmu and DCS7) are TI-Basic programs!
So, I tried a few programs to test this.
When ran using Asm(prgmNAME I always get INVALID.
Any ideas? Here are a few programs I tried:
Code:
Code:
Code:
Code:
Any ideas? I am using cmd and then "compile myfile.z80" (myfile.z80 is in the source folder) to compile.
These are just some, I tried about 10, always the same error.
EDIT: compile.bat also returns no errors in the cmd.
Here's what happened, I tried compiling (compile myfile.z80) and everything was OK, however, the assembled programs (when opened with WabbitEmu and DCS7) are TI-Basic programs!
So, I tried a few programs to test this.
When ran using Asm(prgmNAME I always get INVALID.
Any ideas? Here are a few programs I tried:
Code:
#include "ti83plus.inc"
.org 40339
.db t2ByteTok, tAsmCmp
B_CALL _ClrLCDFull ;Clear the screen
ld a, 1 ;Set a register to 1
add a, 5 ;Solve the problem 1 + 5
ld h,0 ;Set h register to 0
ld l, a ;Set l register to a (6)
B_CALL _DispHL ;Display register hl (6)
B_CALL _getKey ;Wait for a getkey
ret ;End of program
Code:
.nolist
#include "ti83plus.inc"
list
db BBh, 6Dh
Start:
B_CALL _ClrLCDFull
ld hl,1
B_CALL _DispHL
B_CALL _getKey
B_CALL _ClrLCDFull
ret
Code:
.nolist
#include "ti83plus.inc"
#define ProgStart $9D95
.list
.org ProgStart - 2
.db t2ByteTok, tAsmCmp
b_call(_ClrLCDFull)
ld hl, 0
ld (PenCol), hl
ld hl, msg
b_call(_PutS) ; Display the text
b_call(_NewLine)
ret
msg:
.db "Hello world!", 0
.end
.end
Code:
; Program Name:
; Author:
; Version:
; Date:
; Written for Doors CS 7.0 and higher (http://dcs.cemetech.net)
.nolist
#include "ti83plus.inc"
#include "dcs7.inc"
.list
.org progstart
.db $BB,$6D
Init:
xor d
ret
jr Start
.dw Description ;or .dw $0000 if you don't have a description
.db $07,$00 ;always this string
.dw Icon ;or .dw $0000 if you don't have an icon
.dw ALE ;usually .dw $0000 if you don't have or know what an ALE is
Start: ;main routines
;etc etc etc
;ret
Description:
.db "Description",0 ;can be omitted if .dw Description is .dw 0000 above
Icon: ;a 16x16 icon (can be omitted if .dw Icon is .dw 0000 above)
.db %11111111,%11111000
.db %10000000,%00001100
.db %10111100,%00001010
.db %10010010,%00001111
.db %10010010,%01010001
.db %10010010,%10101001
.db %10111100,%01010101
.db %10000000,%00000001
.db %10101010,%10101001
.db %10010101,%01010101
.db %10101010,%10101001
.db %10000000,%00000001
.db %10010101,%01010101
.db %10101010,%10101001
.db %10000000,%00000001
.db %11111111,%11111111
ALE: ;must be omitted if .dw ALE is .dw 0000 above
.db "ZALE",0,0,0,0 ;always eight bytes, use
.db "ZLALE",0,0,0 ;zeros for extra bytes
.db $FF ;put after last ALE
Any ideas? I am using cmd and then "compile myfile.z80" (myfile.z80 is in the source folder) to compile.
These are just some, I tried about 10, always the same error.
EDIT: compile.bat also returns no errors in the cmd.