- 22 May 2015 08:02:12 pm
- Last edited by MateoConLechuga on 25 May 2015 08:13:47 pm; edited 1 time in total
scAFwATLxpKzRCmVaHv wrote:
I got a TI-84 Plus CE yesterday, which of course is programmed with eZ80 Assembly rather than Z80 Assembly. I am unfamiliar with eZ80 Assembly. I know that I have to change some of the addresses, but what else needs to be changed to get the password program to work on a TI-84 Plus CE?
Honestly, it really depends on how much you want to take advantage of the ez80. For your program, not much will need to change, but keep these in mind:
You will need spasm-ng, which you can get here:
https://github.com/alberthdev/spasm-ng/releases/tag/v0.5-beta.1
You will also need the updated (currently in progress) include file:
http://wikiti.brandonw.net/index.php?title=84PCE:OS:Include_File
And that's all that you really need for development. Now, your new program header will look something like this:
Code:
.nolist
#include "ti84pce.inc"
.list
.org userMem-2
.db tExtTok,tAsm84CeCmp
; Your code here
ret
From there; you can just program how you would a z80. You will probably want to remain in ADL mode, which basically just means that address space is 24-bit; but don't worry about that too much.
Also, system calls are no longer needed to be bcalls(). So:
Code:
bcall(_clrscrn)
is just
Code:
call _clrscrn
Or you can use this simple macro if you prefer to distinguish between the two easier:
Code:
#macro bcall(x)
call x
#endmacro
Also, loading and saving register pairs (hl,de,bc, etc.) is now operated in 24-bit (well, technically).
You can find out more by taking a look at the documentation:
http://myimages.wdfiles.com/local--files/start/UM0077.pdf
And also some of the programs in the archives:
http://www.cemetech.net/programs/index.php?mode=folder&path=/84pce/