If anyone knows, could they please tell me How to turn a z80 file into a 8xp file? I know I have to do something in cmd, and I type in asm (file name), but it keeps saying that "tasm" is not a recognizable command. Does anyone know what to do?



The tutorial that I am going through says this:

Now to make sure that everything has been set up satisfactorialy, we are going to write, assemble, link, and send a little do-nothing program. Enter the following source code and don't bother trying to understand it... yet.


Code:
.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


And save as hello.z80 in the source directory
to compile, open up DOS (try Start menu, Run, then whichever of command.com or cmd.exe works) and go to the TASM directory. Type asm hello and press Enter.
After a second or two (or more, depending on your computer's speed), assembly will finish, and the program is ready to be transmitted to the calculator.




I don't know why that is not working. Does anyone have any ideas? And what is the source directory?
You will want to use spasm, which you can get here:

https://github.com/alberthdev/spasm-ng/releases

Place that in the same directory as the z80 file, and then from the command line in the working directory use the syntax:


Code:
spasm file.z80 file.8xp


Hope this helps Smile

You will also probably need to get the ti83plus.inc file from here. Be sure to save it with the correct extension in the same directory as before:

http://www.brandonw.net/calcstuff/ti83plus.txt
Wait...there are a ton of files to choose from on GitHub. I tried all of the windows ones, but none of them work. Any suggestions?

And if you program assembly, how do you transfer your files to your calculator?




I did that, it worked, but there were errors:

Typed in: spasm hellotst.z80 hellotst.8xp

Got:
Pass one...
hellotst.z80:2: error: "ti83plus.inc: No such file or directory
hellotst.z80:2: error SE001: Could not find the file '"ti83plus.inc'
hellotst.z80:7: error SE113: Unknown opcode 'b_call'
hellotst.z80:11: error SE113: Unknown opcode 'b_call'
hellotst.z80:12: error SE113: Unknown opcode 'b_call'

____________________________________

The source-code is a post above this post.




Alright, I did everything so far, and now I have this error:

hellotst.z80:5: error SE113: Unknown opcode 'b_call'
hellotst.z80:9: error SE113: Unknown opcode 'b_call'
hellotst.z80:10: error SE113: Unknown opcode 'b_call'
Those errors are errors in your code. If there isn't an error, the 8xp file should be made already. I don't know ASM, so I can't tell what the errors, but it seems that your 'b_call's might have problems. For the missing "ti83plus.inc", you have to get the one Mateo pointed out to you, and somehow get all the stuff on that page in a new text file, and then save it as a .inc. Good luck!
I think it should be capitalized although I do find it weird that the assembler would not take either one as valid
eg: ("B_CALL(_ClrLCDFull)", rather than "b_call (_ClrLCDFull)")
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement