Tuesday, 13 October 2009

Console Development

Soon i shall be looking into to optimization of code, and too do this, i shall be programming in assembley code. As i have never done so before, i looked at some assembley code from a game. In the end i got this

LFA7D: STA WSYNC
STY PF1
STY PF2
DEX
BNE LFA7D
STX COLUBK
JMP $DFF2
LFA8B: .byte $00,$00,$00,$00,$00,$01,$03,$07,$0F,$1F,$3F,$7F,$FF,$FF,$FF,$FF
.byte $FF,$FF,$FF,$FF,$FF
LFAA0: .byte $FF,$00,$7E,$7E,$60,$60,$60,$60,$60,$60,$60
LFAAB: .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$80,$C0,$E0
.byte $F0,$F8,$FC,$FE,$FF
LFAC0: .byte $FF,$00,$18,$18,$18,$18,$18,$18,$18,$FF,$FF

Looking at this at first was terrifying, so i went on the internet to find out more about it.

The website i have been looking through was this:
http://en.wikibooks.org/wiki/MIPS_Assembly/Arithmetic_Instructions

I decided to look at MIPS as this is what i shall be using to devlop on the PSP. Getting up to scratch on my number systems such as Hexadecimal is essential, so i have been reading CODE (look inside HERE) to get up to sctrach. I am very much looking forward to getting to grips with MIPS and developing on the PSP.

0 comments:

Post a Comment