0 Members and 3 Guests are viewing this topic.
"thanks to Zeda" ===> "Zeda said that the map and names it looked cool"That is genuinely cool stuff, I'm quite impressed with that compiler and development right on the nspire, great work!
I would be interested to get some more information on the assembly compiler you wrote.
Nice project! This reminds me of the time when I tried to build a pokemon clone for the nspire with a few friends. It never went anywhere. Good luck, I hope you'll get further than we did.
/documents/|- DevBoy/ |- compileASM.py.tns (<- you can find this file in the attachments) |- project/ | |- main.asm.tns | |- global/ |- opcodes.inc.tns |- inc/ |- asm/ |- bin/
00 = nop76 = halt7F = ld a,a3A = ld a,(**)3E = ld a,*CB 07 = rlc a
; This is the file "main.asm".; The ROM starts at pos $00, logically..db $FF ; Write 1 byte to pos $00 ==> pos will be incremented by 1 ; pos is now $01.org $02 ; Jump to pos $02 (skip pos $01).db $EE ; Write 1 byte to pos $02 ==> pos will be incremented by 1
infinite_loop::jp infinite_loop
ld a,%10010101 ; load binary 10010101 (=149) into register ald a,$95 ; load hex 95 (=149) into register ald a,#149 ; load decimal 149 into register a
Jump labels etc. are marked by ::, e.g.:Code: [Select]infinite_loop::jp infinite_loop
Quote from: obj04 on April 08, 2020, 10:37:06 amJump labels etc. are marked by ::, e.g.:Code: [Select]infinite_loop::jp infinite_loopWhat's the reason for going with :: instead of the standard :