Hi everyone, new here to the forum.
I recently picked up a TI-84+CE and am going through the bootcamp process of learning assembly programming.
I am trying to add two numbers together and display the output on screen. When I try to do this using the HL register I get a very inaccurate final value output to the display, here is what I am currently doing and what is not working.
Code:
I get as an output 13631503
I was wondering if I could get an explanation as to the internals behind how this value is being calculated.
I recently picked up a TI-84+CE and am going through the bootcamp process of learning assembly programming.
I am trying to add two numbers together and display the output on screen. When I try to do this using the HL register I get a very inaccurate final value output to the display, here is what I am currently doing and what is not working.
Code:
#include "ti84pce.inc"
.assume ADL=1
.org userMem-2
.db tExtTok,tAsm84CeCmp
call _homeup
call _ClrScrnFull
ld a,5
add a,10
ld h,0
ld l,a
call _DispHL
call _GetKey
call _ClrScrnFull
res donePrgm,(iy+doneFlags)
ret
I get as an output 13631503
I was wondering if I could get an explanation as to the internals behind how this value is being calculated.