Calculator Community > ASM
Pokémon Neptunium
obj04:
Hey calculator community!
A while ago, I made a Pokémon Yellow savefile editor.
I explored the world of Pokémon 1st Generation glitches until it became boring.
Somehow, I found an online article about ROM-Hacking which made me think about making my own game.
I decided to write my game for the Nintendo GameBoy Color :crazy: , because I happened to have gbc4nspire installed on my Nspire.
Are you shocked because I mentioned my Nspire? :o
Hold on, the best is yet to come.
I had to write my own Assembly compiler in Micropython! :w00t:
And - it works just fine, although I just cobbled some more or less sensible classes together...
My game does not do very much yet. This could be caused by the fact that I only had some GameBoy (not GameBoy Color) docs to learn the GBC development. :banghead:
But I already finished the overworld map, great thanks to Zeda. :)
You can find my map draft in the attachments.
Stay cool everyone. See ya!
Xeda112358:
"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!
Eeems:
I would be interested to get some more information on the assembly compiler you wrote.
obj04:
--- Quote from: Xeda112358 on April 07, 2020, 03:10:44 pm ---"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!
--- End quote ---
I wrote this because you had the idea to name some of the cities after electronic components :)
obj04:
--- Quote from: Eeems on April 07, 2020, 03:14:32 pm ---I would be interested to get some more information on the assembly compiler you wrote.
--- End quote ---
It works like this:
* Split the source file into an array of code lines and replace "#include <xyz>" by an array of code lines of "xyz"
* Remove comments
* Create a list which contains all jump-labels and aliases
* Convert every line of code into it's opcode, followed by it's arguments, e.g. "nop" -> 0x00, and insert the results into a bytearray
* Replace all aliases by their values
* Write the bytearray's content into a file
I hope this is what you wanted to know. :)
Navigation
[0] Message Index
[#] Next page
Go to full version