28 days hello world program
Code: Select all
.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
assembly programming basics first program
Code: Select all
#define B_CALL(xxxx) rst 28h \ .dw xxxx ;This defines the two macros, bcall and bjump
#define B_JUMP(xxxx) call 50h \ .dw xxxx ;Don't worry about bjump too much because you won't you use it very often
_clrlcdfull =4540h ;The calls we will be using are defined here
_homeup =4558h
.org 9D95h ;This tells the calculator that the program will start at the mem adress 9D95h
B_CALL(_homeup) ;Bringing up the home screen
B_CALL(_clrlcdfull) ;Clearing the screen
ret ;Returning to TI-OS
.end ;End of program
END