Author Topic: Macosx Spasm n00b question  (Read 4194 times)

0 Members and 1 Guest are viewing this topic.

Offline Eleven

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
    • View Profile
Macosx Spasm n00b question
« on: June 05, 2011, 04:45:21 pm »
ok so i am new(b) to assembly (ti84+)

i read Hot_Dog's tutorial and understood most of it. now wanted to try his programs myself.
i am currently working in macosx, although i can swap to windows (7) if really necessary (prefer not though).
i am not familiar with the Command prompt (windows nor macosx), so detailed instructions are maybe needed

so basically i got program1.asm in directory MacOSX/Users/Eleven/Desktop/Assembly
in this same directory i got both include files, and spasm and WabbitEmu
what steps do i need to take to assemble the program and run it in the Emulator (WabbitEmu)?

thx
« Last Edit: June 05, 2011, 04:45:45 pm by Eleven »

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Macosx Spasm n00b question
« Reply #1 on: June 05, 2011, 04:48:33 pm »
In the terminal type:

Code: [Select]
spasm code.asm result.8xp
Save your file as code.asm and the final 8XP file will be called RESULT.

Now I'm not sure of how SPASM works in MacOS, so it may be a little different.

Offline Eleven

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
    • View Profile
Re: Macosx Spasm n00b question
« Reply #2 on: June 05, 2011, 05:09:08 pm »
i get :


-bash: spasm: command not found


Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Macosx Spasm n00b question
« Reply #3 on: June 05, 2011, 05:10:52 pm »
i get :


-bash: spasm: command not found



You need to be in the directory and I think you need a Mac OS Version of SPASM (maybe you have to compile from source).

Offline Eleven

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
    • View Profile
Re: Macosx Spasm n00b question
« Reply #4 on: June 05, 2011, 05:15:46 pm »
and how do i get into the directory? total command prompt noob speaking here (as i mentioned) =)
i have mac version of OSX (was included in tutorial)

**EDIT** i found how to change directories, but same thing still happens (-bash: spasm: command not found)

i am sure i am in the right directory

« Last Edit: June 05, 2011, 05:29:05 pm by Eleven »

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Macosx Spasm n00b question
« Reply #5 on: June 05, 2011, 07:31:31 pm »
In bash you need to do ./spasm (to tell the prompt where to find the spasm command, which is in the current folder, known as .).

But remember that spasm only assembles .asm source files to .bin files. You then need to pack it into a .8xp file, which can be done with bin2var for Mac.After that it's just an ordinary 8xp program that you can send in TI Connect or WabbitEmu.

The Wabbit side of things should be easier: double-click WabbitEmu to start it up (like any other Mac app), and when the calc appears drag the .8xp to its screen to load it in.

Since that's a lot of stuff to remember I'd suggest making a little bash script to do it all for you. I have one I could give to you if I were on my comp... I'll try to grab it for you.
« Last Edit: June 05, 2011, 07:32:22 pm by Deep Thought »




Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Macosx Spasm n00b question
« Reply #6 on: June 05, 2011, 08:02:50 pm »
But remember that spasm only assembles .asm source files to .bin files. You then need to pack it into a .8xp file, which can be done with bin2var for Mac.After that it's just an ordinary 8xp program that you can send in TI Connect or WabbitEmu.

Actually, spasm can go straight to .8xp (or even 8xk for that matter)
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Macosx Spasm n00b question
« Reply #7 on: June 05, 2011, 10:02:15 pm »
Man, I should start reading those f manuals x.x




Offline Eleven

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
    • View Profile
Re: Macosx Spasm n00b question
« Reply #8 on: June 06, 2011, 02:25:49 am »
./ spasm did the trick =D

tyvm

Offline Eleven

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
    • View Profile
Re: Macosx Spasm n00b question
« Reply #9 on: June 06, 2011, 02:51:56 am »
double clicking WabbitEmu resulted in this:

Eleven-MacBook-Pro:~ Eleven$ /Users/Eleven/Desktop/ASM/WabbitEmu ; exit;
dyld: Library not loaded: @loader_path/../Frameworks/BWToolkitFramework.framework/Versions/A/BWToolkitFramework
  Referenced from: /Users/Eleven/Desktop/ASM/WabbitEmu
  Reason: image not found
Trace/BPT trap
logout

[Process completed]


any ideas on what to do now? you've been great help so far =D


**EDIT** downoaded another copy of Wabbitemu, now all i need is the ROM apparently.

**EDIT2** i found the ROM and everything worked (yeey)
               solving 1+5=6 was a bit of an anticlimax though, but now i'm on track =D
« Last Edit: June 06, 2011, 03:13:40 am by Eleven »

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Macosx Spasm n00b question
« Reply #10 on: June 06, 2011, 09:35:15 am »
Glad it works! :) Any luck loading the .8xp file into WabbitEmu? Drag the file on to Wabbit's screen and see if the program is listed under PRGM.

And just a minor rules thing: if it's been less than 6 hours since your last post, you should click Modify instead of double-posting.