Dwedit's Board

Enjoy the board

You are not logged in.

Announcement

Welcome, fellow visitors from other websites!
Whenever you download a file, I'd appreciate it if you posted a nice "Thank You" message, then tell me which site you came from. Thanks.
- Dwedit

#1 2005-01-13 5:17:48 pm

thac0nfus3done
I - AM - A - PEN!
I - AM - A - PEN!
Registered: 2004-12-15
Posts: 39

Programming a Game (in asm)

Well, this may seem like a rediculous question but I was wondering. If I wanted to start programming a in asm for a ti-83 where would I start. I intend to rewrite Chips Challenge for the calculator. How would I start writting the engine for that. I guess the real question would be how do you write a game engine in ASM.


~ thac0nfus3done

Offline

#2 2005-01-14 1:15:34 pm

leofox
Don Flamenco
Don Flamenco
From: Balmora
Registered: 2004-12-23
Posts: 262

Re: Programming a Game (in asm)

depends on how you want to make the game. Every game needs it's own engine.

Offline

#3 2005-01-15 5:47:28 am

thac0nfus3done
I - AM - A - PEN!
I - AM - A - PEN!
Registered: 2004-12-15
Posts: 39

Re: Programming a Game (in asm)

I know, I understand how you create an engine in C. I just have no clue at what angle I should start it. ASM just is a hard thing for me to tackle.

Last edited by thac0nfus3done (2005-01-15 5:47:41 am)


~ thac0nfus3done

Offline

#4 2005-01-15 7:55:41 am

leofox
Don Flamenco
Don Flamenco
From: Balmora
Registered: 2004-12-23
Posts: 262

Re: Programming a Game (in asm)

well, here are some C to ASM tricks:
conditionals:
If A=64
Then
<do stuff>
EndIf

CP 64
CALL Z,stuff

stuff:
<do stuff>
ret

If A=64
Goto stuff

CP 64
jp z, stuff

If a=!64

cp 64
call/jp nz,stuff

there's other stuff like bigger than or smaller than, but i forgot how they go.

There is also TI-power gold, which converts C to ASM using macro's (kind of like the examples i showed). The problem with that is that it's a bit slower than normal ASM, and that the file get's big easily

Offline

Quick reply

Write your message and submit

Board footer

Powered by FluxBB