First: sorry if this is in the wrong spot. I am new to this site and I didn't know where the heck to put this post after a good 10 minutes of looking.

For reference, this is my file tree

D:
/Asm
/Tasm
tasm, binpac8x, etc.
/Source
first.z80
/Exec


I am new to z80 programming, and I am trying to get my first program assembled and converted into 8xp. I started with my code, first.z80 (yes, this is copied from McLaughlin's tutorial):

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


Using tasm -80 -i -b d:\asm\source\first.z80 d:\asm\exec\first.bin, I created a first.bin in my exec folder. However, when I ran "python binpac8x.py ..\Exec\first.bin" from the Tasm folder, it created "first.bin.bin" in my exec folder rather than "first.8xp"

Maybe this was supposed to happen, but I couldn't find any occurrences of it on the forum. Am I doing something wrong? Any help would be greatly appreciated!
Hi Racerdude and welcome to the forums. This most likely could have been raised under the 'z80 & ez80 Assembly' sub-forum under the 'Programming & Design' section, I think an admin may relocate it.

It would also be worth seeing if the .bin.bin file is in-fact a .8XP file, you could try renaming and sending to your calc/emu. Though it is a little strange as it is meant to produce a .8XP by default.

Can I ask what OS you are using and if you are using a batch file etc or just typing the commands at a cprompt/shell?
I tried renaming it with an .8xp extension and opening it in wabbitemu, but it failed.

As far as OS, I am assuming you mean the calculator. I just have the default TI OS that came with the calculator (TI-84+ SE).

(And if you meant my computer OS, Windows 7 64-Bit)
I strongly suggest not using the instructions in ASM in 28 Days to set up an assembler; they're pretty out of date. One option if you don't want to install anything is to just write assembly programs in SourceCoder 3, because you can assemble and test z80 ASM programs directly in your browser. Another option would be to use the Doors CS 7 SDK, which despite the name makes any kind of ASM program. It includes Ben Ryves' Brass assembler and the scripts you need to use it.
Indeed Brass can assemble and link straight to an .8xp from a source file on its own.
  
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