Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Heavily commented beginner code

Reply to topic
Author Message
  • Joined: 27 Jun 2020
  • Posts: 212
Reply with quote
Heavily commented beginner code
Post Posted: Wed Aug 25, 2021 10:28 am
Hi guys,

Just chasing some heavily commented learner material in ASM, preferably a SCHMUP as I tend to view this as likely the easiest route to start with games wise.

Also, if you can be bothered - the closest thing to a datasheet for programming the SMS.. memory maps and so forth - I know it would be easy enough to find on my own but if you have recommended material would be awesome.

I assume controller inputs would be as easy as reading a 1 byte registers single bit states?

I recently made a new modchip for each revision of PS1, including one with a single wire BIOS patch in arduino C++, then ported it across to PIC ASM sucessfully, so I'd like to try moving onto some graphical stuff, and what better than the master system...!
  View user's profile Send private message
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14728
  • Location: London
Reply with quote
Post Posted: Wed Aug 25, 2021 7:13 pm
There isn’t really a well commented entire game source published as far as I know. Maybe try https://github.com/maxim-zhao/ono - although this cheats on collision detection by using circle maths and I don’t think it’s well commented.
  View user's profile Send private message Visit poster's website
  • Joined: 25 Feb 2006
  • Posts: 874
  • Location: Belo Horizonte, MG, Brazil
Reply with quote
Post Posted: Wed Aug 25, 2021 9:00 pm
You might want to take a look at the source code for Fire Track; it's a SHUMP for Game Gear in assembly, with source code:
https://www.smspower.org/Homebrew/FireTrack-GG

I don't quite remember if it is heavily commented, but it is commented. The code for the movement of the enemy ships is pretty interesting.

Blockhead may be another option:
https://www.smspower.org/Homebrew/Blockhead-SMS
  View user's profile Send private message Visit poster's website
  • Joined: 27 Jun 2020
  • Posts: 212
Reply with quote
Post Posted: Thu Aug 26, 2021 6:13 am
Thanks @maxim and @haroldoop

I'm just doing ONE more project then I will check these both out, as these old 8 bit systems are a passion having grown up on them.

project on hand is manually implementing a simple SPI algorithm without resorting to libraries and without having to loop any code to output a clock signal on a digital pin...

THEN
I'm all Master System!

But first, a break, where games are actually played and electronics and games are not tinkered with lol
  View user's profile Send private message
Reply to topic



Back to the top of this page

Back to SMS Power!