Good morning and [hopefully!] quick question,
I have been working on making some routines in hexadecimal assembly on-calc to speed up some BASIC programs, thus far been executing the ASM programs as is typical. My question is, is there any way to exchange actual information? Do the variables A through Z (and θ) all have memory addresses which an assembly program could possibly access?
I would imagine they would need to have a fixed address, if so, what would that address be?
a simplistic pseudo-code; 1 is passed into variable A, where the assembly program loads it into HL, increments HL, and puts HL back into A. A is then displayed (hopefully a two) from the basic program
Code:
Is such a thing possible? If so how is this done?
Thanks,
Blackhawk
I have been working on making some routines in hexadecimal assembly on-calc to speed up some BASIC programs, thus far been executing the ASM programs as is typical. My question is, is there any way to exchange actual information? Do the variables A through Z (and θ) all have memory addresses which an assembly program could possibly access?
I would imagine they would need to have a fixed address, if so, what would that address be?
a simplistic pseudo-code; 1 is passed into variable A, where the assembly program loads it into HL, increments HL, and puts HL back into A. A is then displayed (hopefully a two) from the basic program
Code:
PROGRAM A
1 -> A
EXEC asmPrgm(B
Disp A
PROGRAM B
AsmPrgm
2A [MEMORY ADDRESS OF VARIABLE A]
34
22 [MEMORY ADDRESS OF VARIABLE A]
(Maybe a C9 here??)
Is such a thing possible? If so how is this done?
Thanks,
Blackhawk