Re: Writing ASM programs on the calc
[Prev][Next][Index][Thread]
Re: Writing ASM programs on the calc
There once was a proram called Compiler 85 that let you compile Zshell games
on the calc. The down side is you have to hand compile them which takes
FOREVER! :o)
Like on the ti-86 you can use the ti86.asm included file as a reference and
the z80.tab included file.
Then when you write the program you just copy teh Hex coeds from the
included file to the program and run it like a normal zshell program.
Example:
:ASMPRGM
:CD824A
:210300
:220FC0
:215BD7
:CD374A
:CD5F4A
:C9
:48656C6C6F20576F726C6400
;
;
; Below is the source code for the above object
; code
;
;
org _asm_exec_ram
;
call _clrscrn
ld hl,3
ld (_currow),hl ; row 3 col 0
ld hl,hello_world
call _puts ; write the msg
call _newline ; move down a line
ret ; return from prog
;
hello_world:
db 'Hello World',0
All of the commands like ld a, 0 and calls use opcodes that represent the
command.
I know this is hard to understand, but just think about it for a while and
you will see what I mean.
Regards,
Macgyver1
GSee111 wrote in message <19990301185540.28354.00002097@ng117.aol.com>...
>I was wondering if it is possible to write a program for Usgard, ZShell,
etc.
>on the actual calclutator. The only time that I program is in school, so
it
>would be nice to be able to make these types of games on the calculator
instead
>of on a PC. If it is possible to make a program that would allow me to
write
>programs on the calc, please tell me how or tell me where to get that
program
References: