http://calcg.org/newlogo2.png Not Logged in.
Login | Register

General Discussion Board \ Calculator Programming \ Need help geting started

Click here to log in (you must be logged in to post comments).

AuthorComment
bobbo600
Probe
avatar
Posted: 3 Jul 2007
19:46 GMT
Total Posts: 7
I am a noob at programming. I can't spell, but I want to learn to program in Assembly. If you could point me in the right direction, I would love it.

---
I am a NOOB
Super Speler
Dragoon
avatar
Posted: 3 Jul 2007
19:56 GMT
Total Posts: 50
I don't do asm, however I hear Asm in 80 days is good.

---
"My doctor says that I have a malformed public-duty gland and a natural deficiency in moral fibre and that I am therefore excused from saving universes."
threefingeredguy
Ghost
avatar
Posted: 3 Jul 2007
22:33 GMT
Total Posts: 1189
That's ASM in 28 Days and it sucks. Try http://tifreakware.net/tutorials/asmresc.htm.

---
Someone call for an exterminator?
ryantmer
Wraith
avatar
Posted: 3 Jul 2007
23:09 GMT
Total Posts: 692
ASM in 80 days?

Methinks you are confusing it with a movie...

Edit: Ironically, ASM in 28 days in on that site given by 3fg :) (along with much better stuff, though).
haveacalc
Guardian
avatar
Posted: 4 Jul 2007
11:54 GMT
Total Posts: 1111
Seriously, just look all over http://www.z80.info to learn about the instructions themselves and peruse WikiTI for calculator-specific things, especially ROM calls.

3fg, I forget: Has Spencer redone all the TASM components yet?

If not, bobbo600, just get TASM from ticalc.org and put Spasm in the same folder.

Feel free to ask any Assembly questions here. They're much more fun to answer than BASIC ones, especially when explaining/creating routines.

---
-quoted directly from most movies that don't exist (and some that do).
threefingeredguy
Ghost
avatar
Posted: 4 Jul 2007
12:09 GMT
Total Posts: 1189
Instead of TASM use Wabbitspasm which is both an assembler and linker/packer/whatever and is tons faster.
http://www.revsoft.org/phpBB2/viewtopic.php?t=652

---
Someone call for an exterminator?
bobbo600
Probe
avatar
Posted: 5 Jul 2007
14:04 GMT
Total Posts: 7
I got the learn to progam is 28 days but i cant get the packer converter whatevare to work some help


---
I am a NOOB
threefingeredguy
Ghost
avatar
Posted: 5 Jul 2007
14:45 GMT
Total Posts: 1189
Use the link I posted instead of tasm and devpac.

---
Someone call for an exterminator?
haveacalc
Guardian
avatar
Posted: 5 Jul 2007
15:04 GMT
Total Posts: 1111
bobbo600:
Assemblers read from opcode tables to spit out an 8-bit equivalent of the source code you give it, plus some garbage at the beginning of the outputted file to make it more appealing to your calc. That means that you can use any assembler that assembles to the .8xp or .83p file extensions. So, don't bother reading setup instructions given by ASM in 28 Days. Instead, open the assembler linked to by threefingeredguy with cmd.exe to look at the syntax for yourself.

---
-quoted directly from most movies that don't exist (and some that do).
bobbo600
Probe
avatar
Posted: 5 Jul 2007
18:10 GMT
Total Posts: 7
I got the progam to run but i dont know how to use it right is just says that it makes progames for the 83+

---
I am a NOOB
haveacalc
Guardian
avatar
Posted: 5 Jul 2007
18:16 GMT
Total Posts: 1111
If I remember correctly:
To assemble a source file called "example.z80", type this into cmd.exe (if you don't know how to work the command prompt, then just copy and past cmd.exe into Wabbitspasm's folder):

assembler example.z80

---
-quoted directly from most movies that don't exist (and some that do).
bobbo600
Probe
avatar
Posted: 5 Jul 2007
19:49 GMT
Total Posts: 7
so let me get this straght i make my progame and save it as a
.8xe or somthing like that and then i go to the cmd and put
assembler.exe example.8xe and it will convert it so i can then
move it to my calc and try not to brake my calc wow this is a
lot harder then basic but i here it is waaaay beater thank you
for you fast and frendly help this is the BEST CALCULATOR SITE
ON THE WEB

---
I am a NOOB
haveacalc
Guardian
avatar
Posted: 5 Jul 2007
20:47 GMT
Total Posts: 1111
CG says 'anku

The file extension for the source file can be .asm or .z80, depending on what you choose (no difference). Really, though, ASM in 28 Days is outdated and misleading. Start with this.

---
-quoted directly from most movies that don't exist (and some that do).
threefingeredguy
Ghost
avatar
Posted: 6 Jul 2007
00:16 GMT
Total Posts: 1189
The correct syntax for the file I linked to is
spasm name.z80 name.8xp

Where z80 is your source (can also be .asm) and 8xp is your program (or .8xk for an app or .8xu for an OS, but those require more work).

---
Someone call for an exterminator?
bobbo600
Probe
avatar
Posted: 6 Jul 2007
05:05 GMT
Total Posts: 7
Will this work with c++? and i dont get how to make spasm to work i put spasm.exe name.8xp
and it said that it could not open the file could you explane i know i sound dumb but i am trying

---
I am a NOOB
threefingeredguy
Ghost
avatar
Posted: 6 Jul 2007
05:42 GMT
Total Posts: 1189
Either open up the command prompt and navigate to the folder where the files are located or make a batch file containing those commands and run it from the same directory as the files.

---
Someone call for an exterminator?
bobbo600
Probe
avatar
Posted: 7 Jul 2007
05:25 GMT
Total Posts: 7
can you use c++?

---
I am a NOOB
threefingeredguy
Ghost
avatar
Posted: 7 Jul 2007
08:58 GMT
Total Posts: 1189
To do what?

---
Someone call for an exterminator?
haveacalc
Guardian
avatar
Posted: 7 Jul 2007
11:41 GMT
Total Posts: 1111
If you're asking if the assembler builds C++ code, then no. If you're asking if you can force a Z80 to run C++ code, you need to realize that the processor would read byte by byte (or occasionally 2-5 bytes, depending on prefixes and arguments) and would execute the C++ compilage in a way that wouldn't at all represent what you wanted it to do. If you search around at ticalc.org, you'll find several poorly-done high-level languages, none of which you should try. If you're looking for a high-level language to try, wait until Spencer's done making his Scheme interpreter, or try Logo once Google's Summer of Code is over.

If you were asking whether or not you can call the assembler from a C++ program that you made, then probably yes.

---
-quoted directly from most movies that don't exist (and some that do).
bobbo600
Probe
avatar
Posted: 8 Jul 2007
10:03 GMT
Total Posts: 7
Ok thank you that is what i was asking

---
I am a NOOB





Portal | My Account | Register | Lost Password or Username | TOS | Disclaimer | Help | Site Search | File Archives Copyright © 2002-2019 CalcG.org