691
ASM / Ok, I'm a noob
« on: March 23, 2012, 09:57:50 am »
Ok, here is what I tried:
and it didn't work, so i also tried this:
TASM (i haven't tried with the doors CS DSK) always gives an error: unknow command: B_CALL(_PutS)
Code: [Select]
.NOLIST
#define EQU .equ
#define equ .equ
#define END .end
#define end .end
#include "ti83plus.inc"
.LIST
.org 9D93h
.db $BB,$6D
StartProg:
Conditional:
ld a,3
cp 7
jp z,IsSeven
cp 3
jp z,IsThree
jp nz,IsNoneOfThese
IsSeven
ld a,0
ld (CURCOL),a
ld a,0
ld (CURROW),a
ld hl,txtHell
B_CALL(_PutS)
ret
txtHell:
.db "7",0
IsThree
ld a,0
ld (CURCOL),a
ld a,0
ld (CURROW),a
ld hl,txtHel
B_CALL(_PutS)
ret
txtHel:
.db "3",0
IsNoneOfThese
ld a,0
ld (CURCOL),a
ld a,0
ld (CURROW),a
ld hl,txtHello
B_CALL(_PutS)
ret
txtHello:
.db "Hello World",0
.end
and it didn't work, so i also tried this:
Code: [Select]
.NOLIST
#define EQU .equ
#define equ .equ
#define END .end
#define end .end
#include "ti83plus.inc"
.LIST
.org 9D93h
.db $BB,$6D
StartProg:
Conditional:
ld a,3
cp 7
jp z,IsSeven
cp 3
jp z,IsThree
jp nz,IsNoneOfThese
IsSeven
ld a,0
ld (CURCOL),a
ld a,0
ld (CURROW),a
ld hl,txtHell
B_CALL(_PutS)
ret
IsThree
ld a,0
ld (CURCOL),a
ld a,0
ld (CURROW),a
ld hl,txtHel
B_CALL(_PutS)
ret
IsNoneOfThese
ld a,0
ld (CURCOL),a
ld a,0
ld (CURROW),a
ld hl,txtHello
B_CALL(_PutS)
ret
txtHello:
.db "Hello World",0
txtHel:
.db "3",0
txtHell:
.db "7",0
.end
TASM (i haven't tried with the doors CS DSK) always gives an error: unknow command: B_CALL(_PutS)