* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: z80 Brass Assembly issues  (Read 412 times)

0 Members and 1 Guest are viewing this topic.

Offline 123outerme

  • Super User
  • Join Date: Jan 2015
  • Location: In spaaace! Well, the Earth is anyhow.
  • Posts: 624
  • Post Rating Ratio: +5/-0
  • Professional Unpaid Intern
    • 113/11355
  • Gender: Male
z80 Brass Assembly issues
« on: February 23, 2017, 11:42:53 pm »
For some reason, I set up my 83+ Assembly environment (following and checking it against every guide I looked for, including correct include files, etc. And I'm no stranger to ASM, I did a little bit of CSE ASM), yet I can't load any program I build into WabbitEmu. I've tried looking through the list file produced, I've tried removing the .db t2ByteTok, tAsmCmp so I can see if it just outputs a readable file (that would only contain numbers, of course :P), but I can't read that either.

Code: [Select]
.nolist
#include "ti83plus.inc"
#define ProgStart $9D95
.list
.org ProgStart - 2
.db t2ByteTok, tAsmCmp
;b_call(_RunIndicOff)
b_call(_ClrLCDFull)
ld     HL, numVar
b_call(_DispHL)
KeyLoop:
    b_call(_GetCSC)
    cp skUp       ; If the up arrow key was pressed.
    JR Z, Increase
    cp skDown     ; If the down arrow key was pressed.
    JR Z, Decrease
    cp skClear    ; If the CLEAR key was pressed.
    JR Z, Finish
    JR KeyLoop    ; If any other key was pressed, or none, redo _GetCSC.
Increase:
ld A, H
cp 255
JR Z, KeyLoop
inc HL
ld (numVar), HL
JR PrintHL
Decrease:
ld A, H
cp 0
JR Z, KeyLoop
dec HL
ld (numVar), HL
PrintHL:
b_call(_ClrLCDFull)
b_call(_DispHL)
JR KeyLoop
Finish:
;b_call(_RunIndicOn)
b_call(_ClrLCDFull)
    ret
numVar:
.db 0
.end

Edit: If it helps, the error thrown by WabbitEmu when trying to load says "Invalid file argument".
« Last Edit: February 24, 2017, 02:48:02 am by 123outerme »


  • Calculators owned: TI-84+CSE, TI-nspire Clickpad, TI-84+SE

Offline p2

  • CodeWalrus Staff
  • Super User
  • Moderator
  • CodeWalrus Supporter
  • *
  • Join Date: Aug 2016
  • Location: Germany
  • Posts: 2266
  • Post Rating Ratio: +8/-0
  • *Wubba lubba dub dub*
    • KaliPhobos
  • Gender: Male
Re: z80 Brass Assembly issues
« Reply #1 on: February 24, 2017, 08:14:37 am »
@Sorunome should take a look at this :)
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

Offline tr1p1ea

  • Full User
  • Join Date: Feb 2015
  • Location:
  • Posts: 253
  • Post Rating Ratio: +4/-1
Re: z80 Brass Assembly issues
« Reply #2 on: February 24, 2017, 09:03:03 am »
With BRASS have you included the '.binarymode ti8x' directive?

http://www.benryves.com/bin/brass/

Offline 123outerme

  • Super User
  • Join Date: Jan 2015
  • Location: In spaaace! Well, the Earth is anyhow.
  • Posts: 624
  • Post Rating Ratio: +5/-0
  • Professional Unpaid Intern
    • 113/11355
  • Gender: Male
Re: z80 Brass Assembly issues
« Reply #3 on: February 24, 2017, 04:21:07 pm »
With BRASS have you included the '.binarymode ti8x' directive?

http://www.benryves.com/bin/brass/
Yes, that was the problem! I got confused when looking at my CSE code and seeing that, since I thought it was specific to CSE asm using Doors. I should probably just use Spasm instead.
  • Calculators owned: TI-84+CSE, TI-nspire Clickpad, TI-84+SE

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games