GP2X I Have A Simple Program I'm Trying


OMars

Well-Known Member
Joined
Jul 31, 2005
Messages
1,088
Website
Visit site
Here it is:(it's in assembly)
Code:
.MODEL SMALL
.STACK 200H
.CODE
START:

Mov ah, 2
Mov dl, 1
Int 21h

mov ah, 4ch
mov al,00h
int 21h

END START

I have TASM but I don't know how to use it................ <_<

Note: this is not for the GP2X, it is for a computer(my first program :D )
 
If it's generating an .obj file, you'll have to find a linker to convert it into an .exe. Val is a decent linker - ftp://ftp.simtel.net/pub/simtelnet/msdos/asmutl/valarrow.zip (also comes with the arrow assembler, which you don't need)

Also, have you looked at nasm? It uses a slightly simplified syntax compared to masm/tasm, so there's less of the dot directives, and you can generate .com files without a linker (but .com is limited to 64KB program size).
 
The accompanying linker to tasm is tlink. If you have tlink installed as well as tasm, it should be a matter of just typing:

Code:
tasm file
tlink file

And if everything goes ok you should have an .EXE file waiting there for you.
 
Good luck with writing your first program in ASM.
ASM is hard, I actually think your are insane.
 
Good luck with writing your first program in ASM.
ASM is hard, I actually think your are insane.
Haha, it just writes 1 to the screen and quits.
I didn't mean that: that program was hard. I just meant that it is a hard langauge to start off with, especially if you wanna do more than write 1 to the screen. But that is my opinion, there are probably some people here who find low-level easier than high-level langauges.
 
Last edited by a moderator:
Plus, this program isn't even gonna work on the 2X... he uses a BIOS interrupt. Don't think those are available.

Could be provided by Linux though, hmm...

Omars: You really only should be using ASM for time-critical portions of your application. Yes, you should probably write a sprite blitter in ASM if you care about speed. No, you definitely don't want to implement bunches of menu screens or game logic in ASM because it'll quickly grow unmanagable.
 
RiXOR - that program isn't going to work because it's written in Intel 8086 assembly language. The GP2X uses an ARM processor which is not compatible with the 8086.

<Shameless Plug>Omars could of course use my forthcoming GP2X IBM PC emulator, 'Legacy' to test that code once he's entered it, as well as play numerous games from the early 80's. The emulator is already running on the GP2X and updates will be posted on the gp32x.de board later this week.</Shameless Plug>.
 
Last edited by a moderator:
<Shameless Plug>Omars could of course use my forthcoming GP2X IBM PC emulator, 'Legacy' to test that code once he's entered it, as well as play numerous games from the early 80's. The emulator is already running on the GP2X and updates will be posted on the gp32x.de board later this week.</Shameless Plug>.
Nice, I can't wait.
 
Last edited by a moderator:
<Shameless Plug>Omars could of course use my forthcoming GP2X IBM PC emulator, 'Legacy' to test that code once he's entered it, as well as play numerous games from the early 80's. The emulator is already running on the GP2X and updates will be posted on the gp32x.de board later this week.</Shameless Plug>.
Nice, I can't wait.

What he said.

I hope Jumpman works :)
 
Last edited by a moderator:
Heh, I had Jumpman running yesterday evening on the GP2X in glorious 4 colour CGA, funnily enough.

I'm currently working on getting the emulator working at an acceptable speed on the GP2X - it's amazing what the complexity of the 8086 instruction set can do to cripple the power of a 200Mhz ARM CPU.
 
I didn't mean that: that program was hard. I just meant that it is a hard langauge to start off with, especially if you wanna do more than write 1 to the screen. But that is my opinion, there are probably some people here who find low-level easier than high-level langauges.
I meant, hey, look at all the code you need just to write 1 to the screen. ASM is hard.
 
Last edited by a moderator:
I didn't mean that: that program was hard. I just meant that it is a hard langauge to start off with, especially if you wanna do more than write 1 to the screen. But that is my opinion, there are probably some people here who find low-level easier than high-level langauges.
I meant, hey, look at all the code you need just to write 1 to the screen. ASM is hard.
That makes this conversation funny.
 
Last edited by a moderator:
Back
Top