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 - diffs on tutorial web vs tutorial file;

Reply to topic
Author Message
  • Joined: 12 Dec 2022
  • Posts: 10
  • Location: Lloret de Mar
Reply with quote
diffs on tutorial web vs tutorial file;
Post Posted: Sat Dec 17, 2022 1:31 am
In web, https://www.smspower.org/maxim/HowToProgram/Stopping, it says:
; Turn screen on
ld a,%01000000

but in code Helloworld.asm is written:
; Turn screen on
ld a,%11000000

So what is the correct : %010.. or $110 ?
  View user's profile Send private message
  • Joined: 01 Feb 2014
  • Posts: 875
Reply with quote
Post Posted: Sat Dec 17, 2022 7:35 am
Both are correct. The relevant bit to switch the screen on and off is bit 6 of the byte. The other bits do different things. See Charles's VDP documentation for details.
  View user's profile Send private message
  • Joined: 04 Jul 2010
  • Posts: 540
  • Location: Angers, France
Reply with quote
Post Posted: Sat Dec 17, 2022 9:22 am
Its time to read the doc
https://www.smspower.org/Development/SMSOfficialDocs
  View user's profile Send private message
Reply to topic



Back to the top of this page

Back to SMS Power!