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 - SMS Test Suite

Reply to topic Goto page 1, 2, 3, 4, 5, 6  Next
Author Message
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 15641
  • Location: London
Reply with quote
Post Posted: Thu Jun 21, 2018 8:49 pm
I'm no artist - my homebrew can attest to that - but I've been criticised for the same thing in the past. Maybe we can get some help from someone on the forum?
  View user's profile Send private message Visit poster's website
  • Joined: 20 Feb 2008
  • Posts: 118
  • Location: Saintes, France
Reply with quote
Post Posted: Thu Jun 21, 2018 9:48 pm
Revo wrote
If you have problems with the Sports Pad, contact Vingazole, he made a little test rom for it few years ago ;)

SPORTSPAD is just a struct{char x,y;} :

//       fonctions pour lire les sportspads (trackballs)

extern void read_sportspad1(SPORTSPAD * p_sportspad);
extern void read_sportspad2(SPORTSPAD * p_sportspad);


void read_sportspad_asm() {
  __asm

  _read_sportspad1::                                 ; TRACKBALL #1

          ld        a,#0x0D             ; STROBE 1 LOW       (%00001101)      ; READ X1
          out    (#0x3f),a        ;

          ld     b,#25            ; wait 80 microseconds
   1$:     djnz   1$                 ;

          in     a,(#0xdc)             ; read X1 high nibble
          and    #0x0f                 ;         ( bits 0..3 from port #0xdc)

          rrca
          rrca
          rrca
          rrca
          ld     d,a


          ld     a,#0x2D        ; STROBE 1 HIGH      (%00101101)
        out    (#0x3f),a           ;

          ld     b,#13                ; wait 40 microseconds
   2$:     djnz   2$               ;

          in     a,(#0xdc)               ; read X1 low nibble
          and    #0x0f                   ;         ( bits 0..3 from port #0xdc)
          or     d

                neg
          ld     (hl),a                ;
          inc    hl


          ld     a,#0x0D             ; STROBE 1 LOW        (%00001101)      ; READ Y1
          out    (#0x3f),a        ;

          ld     b,#13                ; wait 40 microseconds
   3$:     djnz   3$                 ;

          in     a,(#0xdc)             ; read Y1 high nibble
          and    #0x0f                   ;         ( bits 0..3 from port #0xdc)

          rrca
          rrca
          rrca
          rrca
          ld     d,a


          ld     a,#0x2D              ; STROBE 1 HIGH      (%00101101)
          out    (#0x3f),a       ;

          ld     b,#13                 ; wait 40 microseconds
   4$:     djnz   4$

          in     a,(#0xdc)               ; read Y1 low nibble
          and    #0x0f                   ;         ( bits 0..3 from port #0xdc)

          or     d

          neg
          ld     (hl),a           ;

                ret


  _read_sportspad2::

          ld     a,#0x07        ; STROBE 2 LOW         (%00000111)   ; READ X2
          out    (#0x3f),a        ;

          ld     b,#25                 ; wait 80 microseconds
   5$:     djnz   5$

          in     a,(#0xdc)               ; read X2 high nibble
          and    #0xc0                   ;         (bits 6,7 from port #0xdc)
          rrca
          rrca
          ld     e,a

          in     a,(#0xdd)
          and    #0x03                   ;         (bits 0,1 from port #0xdd)
          rrca
          rrca
          or     e
          ld     d,a


          ld     a,#0x87        ; STROBE 2 HIGH       (%10000111)
          out    (#0x3f),a           ;

          ld     b,#13               ; wait 40 microseconds
   6$:     djnz   6$

          in     a,(#0xdc)               ; read X2 low nibble
          and    #0xc0                   ;         (bits 6,7 from port #0xdc)

          ld     e,a

          in     a,(#0xdd)
          and    #0x03                   ;         (bits 0,1 from port #0xdd)
          or     e
          rlca
          rlca
          or     d

          neg
          ld     (hl),a            ; pad_x2 = -X2
                inc    hl

          ld     a,#0x07         ; STROBE 2 LOW         (%00000111)   ; READ Y2
          out    (#0x3f),a              ;

          ld     b,#13                ; wait 40 microseconds
   7$:     djnz   7$

          in     a,(#0xdc)               ; read Y2 high nibble
          and    #0xc0                ;         (bits 6,7 from port #0xdc)
          rrca
          rrca
          ld     e,a

          in     a,(#0xdd)
          and    #0x03                   ;         (bits 0,1 from port #0xdd)
          rrca
          rrca
          or     e
          ld     d,a


          ld     a,#0x87         ; STROBE 2 HIGH       (%10000111)
          out    (#0x3f),a               ;

          ld     b,#13                 ; wait 40 microseconds
   8$:     djnz   8$

          in     a,(#0xdc)               ; read Y2 low nibble
          and    #0xc0                   ;         (bits 6,7 from port #0xdc)
          ld     e,a

          in     a,(#0xdd)
          and    #0x03                   ;         (bits 0,1 from port #0xdd)
          or     e
          rlca
          rlca
          or     d

          neg
                ld     (hl),a               ; pad_y2 = -Y2

      ret
  __endasm;
}



Maxim wrote
One of my project ideas is to make a light phaser program which shows an all white screen, then captures the phaser data for a single frame, then plots that on the screen, and repeats. You should in theory see a half circle pattern drawn with radius depending on the distance from the screen.

I can't check if this is the good ROM (my phaser is at ichigo's...) :
phaser.zip (470 B)

  View user's profile Send private message
  • Joined: 20 Feb 2008
  • Posts: 118
  • Location: Saintes, France
Reply with quote
Post Posted: Thu Jun 21, 2018 10:18 pm
Maxim wrote
I guess for the audio test you can copy Heliophobe's SMS Sound Test, which always had a bug (it writes to the PSG registers every frame instead of only when the values change, which affects the noise channel).



I always wondered why it didn't work ! I wrote this to test the "periodic noise" :
PSG_control.zip (4.1 KB)

  View user's profile Send private message
  • Joined: 22 Apr 2018
  • Posts: 566
Reply with quote
Post Posted: Fri Jun 22, 2018 4:34 am
sverx wrote
so I guess I need some help to create a proper 256x192 image for the linearity test - two images if ratio is different on PAL/NTSC systems. Any volunteer? :)

then, speaking about SMS revisions, I've been asked if there's a way to detect if the hardware is a SMSII or not, not just the VDP version. I'm not sure it's really needed (I mean, you can see yourself which machine you've got in front of you...) but nonetheless it's intriguing.

also, here's a small update - "drop shadow" and "striped sprite" tests added.


That's awesome!

How are you determining 50 Hz vs. 60 Hz and model?

I notice some odd behavior on the various system × (optionally) adapter × flash cart combinations I've tried. How should Game Gear be identified? AFAIK no Game Gear actually generates 50 Hz vertical retrace or PAL, yet the tester identifies one of my Game Gears (with a McWill mod) as PAL/EUR/50 Hz when I use EverDrive GG (but NTSC/USA/60 Hz when I use EverDrive SMS!) Stranger still, my other Game Gear (no McWill mod) is identified reliably as NTSC/USA/60 Hz.
  View user's profile Send private message
  • Joined: 05 Sep 2013
  • Posts: 4609
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Fri Jun 22, 2018 8:04 am
bsittler wrote
How are you determining 50 Hz vs. 60 Hz and model?


V-counter is a 8 bit register that counts up to a given number and then 'skips back' (see http://www.smspower.org/Development/ScanlineCounter ) - so I'm discriminating just checking that difference.

  do {
    old_value=VDPVCounterPort;        // wait until VCounter 'goes back'
  } while (old_value<=VDPVCounterPort);
  if (old_value>=0xE7)
    TV=PAL;                  // old value should be 0xF2
  else
    TV=NTSC;                 // old value should be 0xDA


Game Gears aren't identified (yet...?) - if running in SMS mode, they should be identified as SMS II / USA / NTSC, because that's what they will 'emulate'...

@vingazole: thanks. I can't test that anyway - would you test that for me please? :)

@Bock: wow - that's great. Let see if it actually detects differently than the VDP version, I'll prepare a small test ROM ASAP.

edit:
@wasup (and others with a 'first version' SMS identified as an SMS II) : could you run the attached small ROM and tell me what values appear on the screen?
ModelTest.rar (2.96 KB)
small test ROM that just checks VDP revision and port $0 value...

  View user's profile Send private message Visit poster's website
  • Joined: 05 Nov 2014
  • Posts: 435
  • Location: Auckland - NZ
Reply with quote
Post Posted: Fri Jun 22, 2018 10:43 am
sverx wrote
@wasup (and others with a 'first version' SMS identified as an SMS II) : could you run the attached small ROM and tell me what values appear on the screen?


It shows as SMSII. The menu from my everdrive gets garbled and is left on screen but thats probably not of concern.

  View user's profile Send private message
  • Joined: 07 Sep 2013
  • Posts: 63
  • Location: Finland
Reply with quote
Post Posted: Fri Jun 22, 2018 10:45 am
vingazole wrote
I always wondered why it didn't work ! I wrote this to test the "periodic noise" :


Thank you for this program. I was very curious to check out the highest frequencies and see how different trackers work:

VGM Music Maker: Can't reach the 2 highest frequencies.
Deflemask: Somebody more experienced maybe help me with this one? I'm not familiar with the software but what I could work out was that you can reach the highest frequency but not the following 6 frequencies below that.
SnevenTracker: You can reach all the frequencies. Sadly the .vgm export of this program is not the best possible, you have to trim the exported file yourself.

Those high frequencies are very important for nice PSG cymbal and snare instruments. I feel that the third highest frequency you can reach with VGM MM is just barely enough.

I tested my SMS1 with the ModelTest program:
VDP rev = [SMSII]
Port 0 = [00]

I wish I had a SMS1 VDP, I'm curious if there are any differences in sound? I know that MD PSG differs so much from SMS PSG that most of my SMS optimized tracks are pretty much unlistenable on MD. Filtering etc. might be a reason, not sure.
  View user's profile Send private message Visit poster's website
  • Joined: 05 Sep 2013
  • Posts: 4609
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Fri Jun 22, 2018 11:34 am
@wasup and TomyS:so you both got an SMS I with the new VDP and you both got Port0 = 00! That's nice, I'll run a few tests myself at home this evening and we'll see if we can really identify all the 4 cases:

- 'original' SMS
- 'original' SMS with 'new' VDP
- SMS II
- SMS II with 'old' VDP (very rare!)

edit: while we wait, here's a small update. Audio Tests enabled, Sonic replaced with Alex Kidd in shadow/striped sprite tests.
TestSuite.rar (20.28 KB)
SMS Test Suite v. 0.14 ROM

  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 15641
  • Location: London
Reply with quote
Post Posted: Fri Jun 22, 2018 1:45 pm
I suspect what we are able to test is the behaviour of the chips - IO and VDP. The mapping to real systems is a bit arbitrary but it may be the case that each combination maps to a unique set of hardware. There's board pictures in the development section, you can search for 315-5124 and 315-5246.

I believe you can tell a Master System from a Game Gear by checking the Z80 for CMOS vs NMOS behaviour for the out (c),0 opcode. Maybe better just to report that as the Z80 type. You can also try swapping in the BIOS ROM and see what's there. Actually, that might be an interesting thing to add - do a little checksum of the BIOS and report if it is a know type.

There is different 50/60Hz detection code in games which counts how many times a loop runs between frame interrupts. This will be less sensitive to unusual behaviour in the vcount.
  View user's profile Send private message Visit poster's website
  • Joined: 05 Sep 2013
  • Posts: 4609
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Fri Jun 22, 2018 2:27 pm
Yes, I'm going to check IO and VDP and try to infer the model from there.
I'm not going to add any detecting of a Game Gear for now, that might become eventually interesting later. But the BIOS checksum might indeed be interesting - do we already have a list of known BIOSes with checksum?
As for 50/60Hz detection, I'll keep the current system until proven there are cases where it's not working properly (and Game Gear doesn't yet count ;) )
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 8855
  • Location: Paris, France
Reply with quote
Post Posted: Fri Jun 22, 2018 2:41 pm
Here are the known bioses (with CRC32)

SMS cf4a09ea Alex Kidd in Miracle World [BIOS]/FLAGS=BIOS
SMS 9c5bad91 Alex Kidd in Miracle World [BIOS]/FLAGS=BIOS/COUNTRY=KR
SMS 8edf7ac6 Hang On [BIOS]/FLAGS=BIOS
SMS 91e93385 Hang On / Safari Hunt [BIOS]/FLAGS=BIOS
SMS e79bb689 Missile Defense 3-D [BIOS]/FLAGS=BIOS/EMU_INPUTS=LIGHTPHASER/EMU_3D
SMS 81c3476b Sonic The Hedgehog [BIOS]/FLAGS=BIOS
SMS 0072ed54 SMS (v1.3) [BIOS]/COUNTRY=US,EU/FLAGS=BIOS
SMS b3d854f8 SMS (v2.0) [BIOS]/COUNTRY=EU/FLAGS=BIOS
SMS 48d44a13 SMS Japanese (v2.1) [BIOS]/COUNTRY=JP/FLAGS=BIOS
SMS 1a15dfcc SMS Prototype (M404) [BIOS]/FLAGS=BIOS
SMS 72bec693 SMS Prototype (v1.0) [BIOS]/FLAGS=BIOS
SMS ee2c29ba SMS Store Display Unit [BIOS]/EMU_MAPPER=10/COUNTRY=US/FLAGS=BIOS/COMMENT=This is not properly emulated.

Doing a SUM of the first a few kb should be more than enough (no need to scan everything).

I would suggest display raw tests results (e.g. "VDP test xxxx = 1, IO test 2 = pass etc..") and only after deriving the system from those tests. But having all the raw tests results displayed will help understand what's going on and help with testing on variety of systems.
  View user's profile Send private message Visit poster's website
  • Joined: 05 Sep 2013
  • Posts: 4609
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Fri Jun 22, 2018 2:52 pm
Bock wrote
Doing a SUM of the first a few kb should be more than enough (no need to scan everything).


OK - I can try that. We'll need to create a table with those values (you mean a 16 bit SUM of bytes I believe)

Bock wrote
I would suggest display raw tests results (e.g. "VDP test xxxx = 1, IO test 2 = pass etc..") and only after deriving the system from those tests. But having all the raw tests results displayed will help understand what's going on and help with testing on variety of systems.


I may add a separate page with all the raw test results, sure.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 15641
  • Location: London
Reply with quote
Post Posted: Fri Jun 22, 2018 4:28 pm
The Sega checksum is a 16-bit sum. You can spend a bit more time to make it Adler or CRC but there's not much point - we are trying to identify from a known set, not detect bit level changes.
  View user's profile Send private message Visit poster's website
  • Joined: 22 Apr 2018
  • Posts: 566
Reply with quote
SG-1000 VDP modes too?
Post Posted: Fri Jun 22, 2018 6:10 pm
Any interest in exercising the SG-1000 VDP graphics modes too, for those systems that have them?

I see someone made a set of color tests for the similar ColecoVision graphics modes and posted them to the AtariAge forums linked from the thread on citrus's new ColecoVision RGB mod (maybe somehow adaptable to SG-1000? really I do not know yet) but so far I have not found anything analogous to the 240p test suite for MSX1, SG-1000, SMS-in-SG 1000 mode, ColecoVision, or TI-99/4A. Obviously these machines (other than SMS) are not really "RGB-native", so some of the tests would have to be fairly different from the more modern true-RGB suites, similar to the situation addressed by the NES/Famicom test suite but of course with a greener palette ;)
  View user's profile Send private message
  • Joined: 22 Apr 2018
  • Posts: 566
Reply with quote
Post Posted: Fri Jun 22, 2018 6:49 pm
Last edited by bsittler on Fri Jun 22, 2018 11:46 pm; edited 7 times in total
sverx wrote
I'm reading about the linearity test and I'm a bit puzzled.
I suspect the TV is supposed to show perfectly square pixels both in 50Hz/60Hz modes, right? 256x192 is exactly 4:3...


I think that at least for NTSC the linearity test images here should be effectively identical to the ones from the SNES 240p suite except with the top 16 pixels and bottom 16 pixels cut off

edit: n/m, i see that with the truncation measuring distortion becomes impossible, so indeed a new image is needed.

edit 2-4: maybe these work better? feel free to use; small circles have radius 1/4th of the large circle

edit 5: is PAL SMS really letterboxed that much?!? that usable area is even shorter than 16:9!

edit 6: added a couple Game Gear SMS mode linearity tests, but the actual GG pixel aspect ratio is just a guess (need to check this on the real hardware in SMS mode)

edit 7: just measured on an actual Game Gear (non-McWill) in GG-SMS subpixel color-bleed mode, SMS pixel aspect ratio is actually around 1.218 !

edit 8: corrected pixel grid alignment

edit 9: added a test image with partial compensation for GG-SMS subpixel mapping — this still needs testing on real hardware
linearity-256x192.png (785 B)
screenshot from SNES 240p test suite truncated to 256x192
linearity-256x192.png
new-1-1-gg-sms-linearity-256x192.png (1.1 KB)
GG-SMS hypothetical square pixel linearity test
new-1-1-gg-sms-linearity-256x192.png
new-1-1-linearity-256x192.png (1.2 KB)
SMS square pixel linearity test
new-1-1-linearity-256x192.png
new-pal-linearity-256x192.png (1.04 KB)
SMS PAL linearity test
new-pal-linearity-256x192.png
new-linearity-256x192.png (1.09 KB)
SMS NTSC linearity test
new-linearity-256x192.png
new-gg-sms-linearity-256x192.png (1.1 KB)
GG-SMS linearity test
new-gg-sms-linearity-256x192.png
new-gg-sms-linearity-256x192.png (1.09 KB)
GG-SMS hypothetical NTSC linearity test
new-gg-sms-linearity-256x192.png
new-actual-gg-sms-linearity-256x192.png (6.88 KB)
GG-SMS linearity test with partial subpixel compensation
new-actual-gg-sms-linearity-256x192.png

  View user's profile Send private message
  • Joined: 08 Dec 2013
  • Posts: 200
Reply with quote
Post Posted: Fri Jun 22, 2018 9:27 pm
Maxim wrote
The Sega checksum is a 16-bit sum. You can spend a bit more time to make it Adler or CRC but there's not much point - we are trying to identify from a known set, not detect bit level changes.


I would argue that checking the whole ROM would be wise in case we stumble across new and unknown ROMs; or if the user has a faulty ROM.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 15641
  • Location: London
Reply with quote
Post Posted: Sat Jun 23, 2018 6:02 am
The goal is to detect what's there (including anything unknown), not to dump it. Checksumming the whole thing would require detecting the size too.
  View user's profile Send private message Visit poster's website
  • Joined: 08 Dec 2013
  • Posts: 200
Reply with quote
Post Posted: Sat Jun 23, 2018 8:23 am
How do you know a ROM needs dumping unless there's a program out there people can run that could tell them what ROM they have? Surely throwing up a message like "Unknown ROM, please contact us about dumping it!" would help you in the long-run. That said, I can't comment on the practicality and size issue.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 8855
  • Location: Paris, France
Reply with quote
Post Posted: Sat Jun 23, 2018 8:28 am
Identifying among known BIOS dump is probably a matter of scanning about 1 KB, then in the event it is useful to dig further, there can be an option for displaying SUM of each 16 KB page + maybe an HEX viewer.

Realistically we don't find BIOS variations that have matching first few KB and the rest is different.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 15641
  • Location: London
Reply with quote
Post Posted: Sat Jun 23, 2018 10:08 am
...although that could be plausible for a minor patch. The point is, someone running this will be capable of running another program to dump the ROM if necessary.

Do we have useable libraries to write to the Everdrive SD card? I seem to remember the old released source had some FAT code but it has since changed to FAT32, I believe.
  View user's profile Send private message Visit poster's website
  • Joined: 05 Sep 2013
  • Posts: 4609
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Sat Jun 23, 2018 9:47 pm
Maxim wrote
Do we have useable libraries to write to the Everdrive SD card? I seem to remember the old released source had some FAT code but it has since changed to FAT32, I believe.


we can already write up to 32 KB to SD exploiting the SRAM save feature

@bsittler: thanks, I'll try them. Could you please tell me the ratio applied to each one? I want to check if it's the same I expected.
  View user's profile Send private message Visit poster's website
  • Joined: 22 Apr 2018
  • Posts: 566
Reply with quote
Post Posted: Sat Jun 23, 2018 11:00 pm
sverx wrote
Maxim wrote
Do we have useable libraries to write to the Everdrive SD card? I seem to remember the old released source had some FAT code but it has since changed to FAT32, I believe.


we can already write up to 32 KB to SD exploiting the SRAM save feature

@bsittler: thanks, I'll try them. Could you please tell me the ratio applied to each one? I want to check if it's the same I expected.


NTSC uses 1.141 PAR from Maxim's comment.

PAL uses 1.352 PAR from Maxim's comment.

Non-hypothetical GG SMS uses 1.218 PAR from my own measurements. I wouldn't be surprised if this number turns out to be slightly off.

Square uses 1.000 PAR.

All GG SMS leave left and right 8 pixels blank as they are off-screen on original hardware.

Partial subpixel compensation means image was originally generated for SMS-addressable subset of whole-pixel GG screen resolution, then upscaled to corresponding SMS resolution for that region prior to adding 8 pixel borders.

In every case I attempted to leave one pixel black borders around the screen edge. Edge widths are not PAR-adjusted, as that would look weirder. Images are mapped to greyscale subset of the SMS palette but have not been adjusted for tile mapping feasibility

edit: added images showing how each test image *should* look, more or less (not actually simulating Game Gear original display awfulness, though)
pal-sms-appearance.png (16.24 KB)
SMS PAL linearity simulation
pal-sms-appearance.png
ntsc-sms-appearance.png (15.16 KB)
SMS NTSC linearity simulation
ntsc-sms-appearance.png
square-sms-appearance.png (12.53 KB)
SMS square pixel linearity simulation
square-sms-appearance.png
unscaled-gg-sms-appearance.png (15.97 KB)
GG-SMS linearity simulation
unscaled-gg-sms-appearance.png
downscaled-gg-sms-appearance.png (15.09 KB)
GG-SMS linearity simulation with partial subpixel compensation
downscaled-gg-sms-appearance.png
ntsc-gg-sms-appearance.png (15.65 KB)
GG-SMS hypothetical NTSC linearity simulation
ntsc-gg-sms-appearance.png
square-gg-sms-appearance.png (12.69 KB)
GG-SMS hypothetical square pixel linearity simulation
square-gg-sms-appearance.png

  View user's profile Send private message
  • Joined: 05 Sep 2013
  • Posts: 4609
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Mon Jun 25, 2018 8:36 am
Bock wrote
See http://www.smspower.org/Development/WonderBoyInMonsterWorld-SMS for an idea.


mmm... is that info reliable? My small test returns $00 both on wasup and TomyS first revision SMS (both with 'new' VDP) - as expected - but it also returns $00 on my SMS II.

unsigned char port0 (void) __naked {
  __asm
    in a,(#0)
    ld l,a
    ret
  __endasm;
}


should I do anything special before reading port 0 ?

@bsittler: thanks, I'm putting them in :)

edit: more help needed. Can anyone turn this image to SMS format without using dithering? I seems I can't - colors always turn ugly :(
  View user's profile Send private message Visit poster's website
  • Joined: 22 Apr 2018
  • Posts: 566
Reply with quote
Post Posted: Mon Jun 25, 2018 4:51 pm
Last edited by bsittler on Tue Jun 26, 2018 1:11 am; edited 3 times in total
sverx wrote
Bock wrote
See http://www.smspower.org/Development/WonderBoyInMonsterWorld-SMS for an idea.


mmm... is that info reliable? My small test returns $00 both on wasup and TomyS first revision SMS (both with 'new' VDP) - as expected - but it also returns $00 on my SMS II.

unsigned char port0 (void) __naked {
  __asm
    in a,(#0)
    ld l,a
    ret
  __endasm;
}


should I do anything special before reading port 0 ?

@bsittler: thanks, I'm putting them in :)

edit: more help needed. Can anyone turn this image to SMS format without using dithering? I seems I can't - colors always turn ugly :(


Colors do indeed turn ugly. How about one of these? Made with some variations similar to

ppmcolors -maxval=3 > sms-palette.ppm ; wget -O- https://uploa
.wikimedia.org/wikipedia/en/e/ec/Alex-Kidd-in-Miracle-World-game-screenshot.png |
ngtopnm > akimw-palette.ppm ;wget -O- https://upload.wikimedia.org/wikipedia/en/3/
0/Alex_Kidd_EnchantedCastle.png | pngtopnm | ppmbrighten -s 20 | ppmquant -mapfile
akimw-palette.ppm | pnmscale -xscale 0.7 -yscale 0.8 | ppmquant -mapfile sms-palet
e.ppm | pnmtopng > akimw.png


or

convert Alex_Kidd_EnchantedCastle.png -despeckle -resize '168x
92!' -posterize 4 -despeckle - | anytopnm  | ppmquant -mapfile akimw-palette.ppm |
pnmremap -mapfile sms-palette.ppm | pnmtopng > akimw2.png

akimw.png (4.54 KB)
Early unsuccessful attempt
akimw.png
akimw (1).png (4.32 KB)
Early unsuccessful attempt #2
akimw (1).png
akimw (2).png (4.44 KB)
Just a little Floyd-Steinberg, but we can pretend it's pixel art, right?
akimw (2).png
akimw (3).png (6.17 KB)
Ordered dither comparison
akimw (3).png
akimw2 (1).png (3.51 KB)
Happy accident?
akimw2 (1).png
akimw2 (3).png (5.81 KB)
Ordered dither with quite a bit of despeckling
akimw2 (3).png
akimw2 (4).png (3.92 KB)
Slightly vectorized
akimw2 (4).png
akimw-gg.png (4.24 KB)
GG-native, for comparison
akimw-gg.png

  View user's profile Send private message
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 8855
  • Location: Paris, France
Reply with quote
Post Posted: Mon Jun 25, 2018 6:56 pm
sverx wrote
Bock wrote
See http://www.smspower.org/Development/WonderBoyInMonsterWorld-SMS for an idea.


mmm... is that info reliable? My small test returns $00 both on wasup and TomyS first revision SMS (both with 'new' VDP) - as expected - but it also returns $00 on my SMS II.


Perhaps it is tied to the VDP type? Or maybe the description is faulty and it would mainly differentiate GG from SMS or possibly MD from SMS?
  View user's profile Send private message Visit poster's website
  • Joined: 30 Jun 2016
  • Posts: 218
  • Location: Australia
Reply with quote
Post Posted: Tue Jun 26, 2018 4:37 am
Might be worth approaching redrawing the image by hand.
I'd give it a go right now if I wasn't very busy today.


EDIT: Just did the thing I said I was not going to do.
Didn't account for aspect ratio because, well, your version didn't. :P

The skin tones are completely off, and the shading on the hair is also completely off, but this somehow looks closer aesthetically to the original image than using the closest colours to the actual base image.

No niceties such as anti-aliasing have been drawn in - Combination of this being done in 30 minutes, and the fact that doing so on this picture actually makes it look blurry. :D

EDIT 2: Oh... you did account for aspect ratio. Bugger. :D
alexkiddsmstest.png (4.68 KB)
alexkiddsmstest.png

  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 15641
  • Location: London
Reply with quote
Post Posted: Tue Jun 26, 2018 5:59 am
I shouldn't complain that this is Enchanted Castle Alex :) It's hard to find equivalent art for Master System era stuff. The closest is probably colourised manual art.
  View user's profile Send private message Visit poster's website
  • Joined: 05 Sep 2013
  • Posts: 4609
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Tue Jun 26, 2018 8:21 am
@bsittler: the "happy accident" one isn't bad ;)

@Flygon: that's great - but now you're going to kill me as I forgot to mention I needed it smaller :| ... some 75% to 80%, like the picture I'm using actually (attached here for reference)

@Maxim: if you provide a better source we'll take that into account :p

@Bock: I don't really know. Both my SMS II and their SMS I with 'new' VDP just return $00 which is what the first revision Master Systems should return, so I'm greatly puzzled. I guess what we can do is to actually test Wonder Boy in Monster World ROM and see if that 'TM' appears or if it doesn't. If we indeed get different results, then it's worth investigating more...
AlexKidd.png (5.72 KB)
the dithered image I'd like to replace...
AlexKidd.png

  View user's profile Send private message Visit poster's website
  • Joined: 30 Jun 2016
  • Posts: 218
  • Location: Australia
Reply with quote
Post Posted: Tue Jun 26, 2018 9:18 am
Would you be wanting it squished horizontally for aspect ratio shenanigans, or done in the way directly presented?
  View user's profile Send private message Visit poster's website
  • Joined: 05 Nov 2014
  • Posts: 435
  • Location: Auckland - NZ
Reply with quote
Post Posted: Tue Jun 26, 2018 10:02 am
sverx wrote
@Bock: I don't really know. Both my SMS II and their SMS I with 'new' VDP just return $00 which is what the first revision Master Systems should return, so I'm greatly puzzled. I guess what we can do is to actually test Wonder Boy in Monster World ROM and see if that 'TM' appears or if it doesn't. If we indeed get different results, then it's worth investigating more...


Have just tried this on my systems and get mixed results with the "TM" on the logo of Wonder boy in monster world. It doesn't quite match what is being suggested on that page.

Going back to your model test program, i get the following results on these systems...

SMS 1 (new VDP) --> VDP Rev = SMS II / Port 0 = 00
SMS II --> VDP Rev = SMS II / Port 0 = 00
Game gear --> VDP Rev = SMS II / Port 0 = ff
Mega Drive II = --> VDP Rev = SMS / Port 0 = ff (Gemitas doesn't run properly so VDP is reporting correctly)

Edit : These tests were done using the same ever drive on all consoles, and adapters to suit each console where needed
  View user's profile Send private message
  • Joined: 05 Sep 2013
  • Posts: 4609
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Tue Jun 26, 2018 11:53 am
... so I suspect it was just a typo in Charles docs :|
Maybe we can somehow check if the card port is present?
  View user's profile Send private message Visit poster's website
  • Joined: 05 Nov 2014
  • Posts: 435
  • Location: Auckland - NZ
Reply with quote
Post Posted: Tue Jun 26, 2018 12:20 pm
I guess you could still use that test to tell if its a game gear?

Not sure you can use the card slot as youll only be able to read from it if a card is inserted. On an sms ii you can still select it but just get an empty slot.
  View user's profile Send private message
  • Joined: 30 Mar 2009
  • Posts: 303
Reply with quote
Post Posted: Tue Jun 26, 2018 1:45 pm
Here is my attempt in the Alex Kidd image.
This is based on the drawing of the japanese Miracle World boxart.

I tried to keep dithering to a minimum.

See if it's better.
alexkidd_.png (3.81 KB)
alexkidd_.png

  View user's profile Send private message Visit poster's website
  • Joined: 22 Apr 2018
  • Posts: 566
Reply with quote
Post Posted: Wed Jun 27, 2018 3:27 am
@tibone - that's an awesome SMS/MkIII-era Alex :)

@sverx - any interest in 224-line or 240-line SMS2 linearity test images? It would let you rename your suite "240p" I think ;) - and also adjusting for barrel distortion on a real CRT should actually be easier when more of the screen is covered by the test image. My assumption is that these modes use the same pixel aspect ratio (PAR) but just have less letterboxing. Of course you could just use the same images from other platforms for those modes, since AFAIK they are fairly common and the SMS does not use an unusual pixel width
  View user's profile Send private message
  • Joined: 05 Sep 2013
  • Posts: 4609
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Wed Jun 27, 2018 7:54 am
@tibone: thanks - I'll test that ASAP :)

@bsittler: mmm... not at the moment, as they would work only on SMS II (and 240 lines only on PAL ones...) - I might add them later, now I want to reach ver 1.00 with all the basic stuff in place.

@Flygon: I'll test how tibone's Alex Kidd works - thank you!

@Maxim: do you approve tibone's Alex? ;)
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 15641
  • Location: London
Reply with quote
Post Posted: Wed Jun 27, 2018 9:59 am
Nearly :) I would hand fix a few pixels. I have a similar file hanging around somewhere from when I was working on the Alex Kidd 2 ending sequence. Japanese box art Alex is the best :)
  View user's profile Send private message Visit poster's website
  • Joined: 30 Mar 2009
  • Posts: 303
Reply with quote
Post Posted: Wed Jun 27, 2018 11:40 am
Yeah, there are few places (like the belt and left knee) that could be cleaned up a bit. I can probably try and hand-fix those places, if anyone wants.

but yeah, japanese box art Alex is the best. agreed. :)



Edit:
Cleaner version made. The shading is little flatter, but i think it looks better on reduced number of colors. No dithering.
alexkidd_cleaned.png (3.14 KB)
alexkidd_v2
alexkidd_cleaned.png

  View user's profile Send private message Visit poster's website
  • Joined: 05 Sep 2013
  • Posts: 4609
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Thu Jun 28, 2018 9:32 am
@tibone: thanks, it's perfect! This also just saved almost 4.5 KB in the ROM, compared to the dithered image I had in the first place.
TestSuite.rar (16.88 KB)
SMS Test Suite v. 0.18 ROM

  View user's profile Send private message Visit poster's website
  • Joined: 07 Sep 2013
  • Posts: 63
  • Location: Finland
Reply with quote
Post Posted: Thu Jun 28, 2018 11:16 am
I made a .vgm file to test if the high volume values are working correctly on your console. It's a constant looping tone that changes between the two highest volume values. If you want to add it to the Test Suite:

https://www.dropbox.com/s/0ylrwtxi2blyhti/VolumeTest.rar?dl=0

I included recordings from my SMS2 & MD2 for example.
You'll hear the volume fluctuating if it works correctly and just a constant tone if the output is flattened.
  View user's profile Send private message Visit poster's website
  • Joined: 22 Apr 2018
  • Posts: 566
Reply with quote
Post Posted: Thu Jun 28, 2018 8:30 pm
Last edited by bsittler on Fri Jul 06, 2018 12:37 am; edited 1 time in total
sverx wrote
@tibone: thanks, it's perfect! This also just saved almost 4.5 KB in the ROM, compared to the dithered image I had in the first place.


Nice work! The new tests and info screens are nice :)

Would it be possible to allow overriding the TV detection during the linearity test (e.g. using direction pad)? Unfortunately it's still mis-detecting one of the Game Gears and (sometimes) the Nomad as PAL, and in any case the "real" (non-McWill) Game Gear has a pixel aspect ratio different from SMS, whereas McWill mods use the SMS pixel aspect ratio by default, but also allow 1:1 square pixels for both GG and GG-SMS modes
hardware-test-screen-on-nomad.jpg (24.1 KB)
Hardware tests screen on Nomad
hardware-test-screen-on-nomad.jpg
hardware-test-screen-on-non-mcwill-game-gear.jpg (19.99 KB)
Hardware tests screen on non-McWill Game Gear: "Master System II/EUR/PAL/50Hz"
hardware-test-screen-on-non-mcwill-game-gear.jpg
mcwill-game-gear-1.jpg (23.52 KB)
McWill Game Gear #1: "Master System II/USA/NTSC/60Hz"
mcwill-game-gear-1.jpg
mcwill-game-gear-2.jpg (22.34 KB)
McWill Game Gear #2: "Master System II/EUR/PAL/50Hz"
mcwill-game-gear-2.jpg
mcwill-ntsc-par.jpg (11.8 KB)
McWill defaults to NTSC pixel aspect ratio and slightly cropped edges
mcwill-ntsc-par.jpg
non-mcwill-par.jpg (11.77 KB)
Non-McWill Game Gear has wider-than-NTSC pixel aspect ratio and slightly cropped edges
non-mcwill-par.jpg

  View user's profile Send private message
  • Joined: 05 Sep 2013
  • Posts: 4609
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Fri Jun 29, 2018 9:10 am
@bsittler: I'm not aiming to GG (yet) - we also might create a separate (native) GG Test Suite later, eventually.

@TomyS: thanks! Is "Volume clipping test" OK?

edit: BTW I'm wondering why two different GG with the same McWill mod do report different screen timing :|
  View user's profile Send private message Visit poster's website
  • Joined: 07 Sep 2013
  • Posts: 63
  • Location: Finland
Reply with quote
Post Posted: Sat Jun 30, 2018 8:59 am
sverx wrote
@TomyS: thanks! Is "Volume clipping test" OK?


I think that sounds good.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 15641
  • Location: London
Reply with quote
Post Posted: Sat Jun 30, 2018 11:16 am
I recommend you switch to a frame length check - see http://www.smspower.org/Development/TVTypeDetection - as it is much less sensitive to implementation details of the line counter overflow.

Having said that, it might be good to run http://www.smspower.org/Homebrew/SMSVDPTest-SMS on those GGs to see what they produce.
  View user's profile Send private message Visit poster's website
  • Joined: 22 Apr 2018
  • Posts: 566
Reply with quote
Post Posted: Sat Jun 30, 2018 9:55 pm
Maxim wrote
I recommend you switch to a frame length check - see http://www.smspower.org/Development/TVTypeDetection - as it is much less sensitive to implementation details of the line counter overflow.

Having said that, it might be good to run http://www.smspower.org/Homebrew/SMSVDPTest-SMS on those GGs to see what they produce.


Nice test suite, don't think I had found that one previously!

The first page of "SMS VDP Test" all pass on all three Game Gears I have here.

On the second page ("SMS VDP misc test"), all three give "Error." for "Counter correct", "Counter chg time", "Frame IRQ HCount", "Line IRQ HCount", and "VINT flag HCount". On the third page ("SMS VDP sprite test"), all three give "Error." for "Spr col correct HC" and "Spr ovr correct HC".

On the next page ("Testing X-Scroll latchtime") a one-pixel-tall slice of the column is offset rightward about halfway across the screen just below the middle of the display. I took pictures and can upload them if helpful.

On the next page ("HCounter Values") one of the McWill-modded Game Gears ends the sequence with "21 21 22 23 24 24 25 26 27 27" while the other two end with "21 22 22 23 24 25 25 26 27 28". I took pictures and can upload them if helpful. Rebooting the Game Gear and rerunning the test does not always give consistent results - running it again, the first Game Gear ends with "26 27 28 29 29 2A 2B 2C 2C 2D" while the other two end with "20 21 22 23 23 24 25 26 26 27".

In "HCount timing & more" the other "HCounter Values" screen also shows slight variation across Game Gears. Again, I took pictures and can upload them if helpful.

All three show "Line value: 1B" / "HBlank value: 85" / "VBlank value: 7F"

"Register Startup Values" vary across all three - note that three different EverDrives are in use, and those may also factor into this. I took pictures and can upload them if helpful.

The first Game Gear (a McWill-modded one with optional RGB+VGA out [not used for this test] and optional external controller ports [ditto]) is using a Game Gear EverDrive with CPLD Version 3, OS Version 9, Max Dir Size 512, Cart Type GG, and Asm date 25.01.2017. This is a Sega Game Gear with Model No. 2110-50, "MADE IN JAPAN", Serial No. B31243347.

The second Game Gear (a McWill-modded one with no VGA out and no external controller ports) is using (via an unmodified Beeshu Gear Master) a Master EverDrive with CPLD Version 2, OS Version 9, Max Dir Size 512, Cart Type SMS, and Asm date 16.01.2017. This is a Sega Game Gear with Model No. 2110-50, "MADE IN JAPAN", Serial No. K271112888.

The third Game Gear (a non-McWill one) is using another Game Gear EverDrive with CPLD Version 3, OS Version 9, Max Dir Size 512, Cart Type GG, and Asm date 01.02.2018. This is a Sega Game Gear with Model No. 2110, "MADE IN TAIWAN", Serial No. O31362818 (maybe that's a 0 rather than an O at the beginning, I don't know.)

All three Game Gears show the BIOS startup screen "PRODUCED BY OR UNDER LICENCE FROM SEGA ENTERPRISES LTD." when booting the everdrive, but not when starting the test suite.

edit: tried VGA out on the Game Gear where that is an option. Results were no different (as expected, given what I understand about how that mod works.) Didn't try RGB out, but no reason to believe that would cause different results.
  View user's profile Send private message
  • Joined: 05 Sep 2013
  • Posts: 4609
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Mon Jul 02, 2018 8:01 am
Maxim wrote
I recommend you switch to a frame length check - see http://www.smspower.org/Development/TVTypeDetection - as it is much less sensitive to implementation details of the line counter overflow.


Sure, I'll consider that - but I'm really puzzled, as I guess there shouldn't be any particular reason why counter overflow shouldn't be accurate.
We should instead focus on bsittler's GameGear which seems to be the only one piece of hardware failing. Any chance that it's 'malfunctioning'? I mean, after all to switch from 60 Hz to 50 Hz all it takes is a single VDP chip pin lifted/shorting... or does some other test identify that as 60 Hz?

edit: no, I misread - three devices identified as PAL? Bummer.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 15641
  • Location: London
Reply with quote
Post Posted: Mon Jul 02, 2018 8:07 am
The frame length test determines "does this system have more or less CPU cycles per vblank", the vcount test determines "does this system's line counter overflow at this number or not". Which is the better question to answer for your purposes?

bsittler, can you try http://www.smspower.org/Homebrew/VCounterTest-SMS next? Maybe best to use the VGA out to save your eyesight. I had thought flubba's test included this.
  View user's profile Send private message Visit poster's website
  • Joined: 05 Sep 2013
  • Posts: 4609
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Mon Jul 02, 2018 8:12 am
I really don't know - maybe we should instead suppose that the line counter overflow values on GameGears are different from the SMS? The check I'm doing doesn't fail on any Master System (until proved wrong...)
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 15641
  • Location: London
Reply with quote
Post Posted: Mon Jul 02, 2018 8:16 am
The VCounter test I linked above is (I think) what Charles used to make his doc, but he may not have had a large enough corpus of Game Gears to test it on.
  View user's profile Send private message Visit poster's website
  • Joined: 22 Apr 2018
  • Posts: 566
Reply with quote
Post Posted: Mon Jul 02, 2018 6:47 pm
Maxim wrote
The VCounter test I linked above is (I think) what Charles used to make his doc, but he may not have had a large enough corpus of Game Gears to test it on.


All three Game Gears give identical results for that test, and they seem to be consistent across runs too.

Ran my three Game Gears through the "256x192 Mode 4" test with "Lines to scan: 312". Results:

The first Game Gear (McWill-modded) using a Game Gear EverDrive:

Reg: 66 E0 VBL: C1

Page 0 is a completely regular 8x16 grid, with hex digits 0-F progressing vertically in the "ones" column of each cell and hex digits 0-7 progressing horizontally in the "sixteens" column of each cell.

00 10 20 30 40 50 60 70
01 11 21 31 41 51 61 71
02 12 22 32 42 52 62 72
03 13 23 33 43 53 63 73
04 14 24 34 44 54 64 74
05 15 25 35 45 55 65 75
06 16 26 36 46 56 66 76
07 17 27 37 47 57 67 77
08 18 28 38 48 58 68 78
09 19 29 39 49 59 69 79
0A 1A 2A 3A 4A 5A 6A 7A
0B 1B 2B 3B 4B 5B 6B 7B
0C 1C 2C 3C 4C 5C 6C 7C
0D 1D 2D 3D 4D 5D 6D 7D
0E 1E 2E 3E 4E 5E 6E 7E
0F 1F 2F 3F 4F 5F 6F 7F


In page 1 the count is biased by -6 after DA:

80 90 A0 B0 C0 D0 DA EA
81 91 A1 B1 C1 D1 DB EB
82 92 A2 B2 C2 D2 DC EC
83 93 A3 B3 C3 D3 DD ED
84 94 A4 B4 C4 D4 DE EE
85 95 A5 B5 C5 D5 DF EF
86 96 A6 B6 C6 D6 E0 F0
87 97 A7 B7 C7 D7 E1 F1
88 98 A8 B8 C8 D8 E2 F2
89 99 A9 B9 C9 D9 E3 F3
8A 9A AA BA CA DA E4 F4
8B 9B AB BB CB D5 E5 F5
8C 9C AC BC CC D6 E6 F6
8D 9D AD BD CD D7 E7 F7
8E 9E AE BE CE D8 E8 F8
8F 9F AF BF CF D9 E9 F9


In page 2 the count starts at FA, wraps from FF to 00, and ends at 32 - after that it's all 00s.

FA 0A 1A 2A 00 00 00 00
FB 0B 1B 2B 00 00 00 00
FC 0C 1C 2C 00 00 00 00
FD 0D 1D 2D 00 00 00 00
FE 0E 1E 2E 00 00 00 00
FF 0F 1F 2F 00 00 00 00
00 10 20 30 00 00 00 00
01 11 21 31 00 00 00 00
02 12 22 32 00 00 00 00
03 13 23 00 00 00 00 00
04 14 24 00 00 00 00 00
05 15 25 00 00 00 00 00
06 16 26 00 00 00 00 00
07 17 27 00 00 00 00 00
08 18 28 00 00 00 00 00
09 19 29 00 00 00 00 00


The second Game Gear (McWill-modded) using a Master EverDrive:

Reg: 66 E0 VBL: C1

Page 0 is a completely regular 8x16 grid, with hex digits 0-F progressing vertically in the "ones" column of each cell and hex digits 0-7 progressing horizontally in the "sixteens" column of each cell.

00 10 20 30 40 50 60 70
01 11 21 31 41 51 61 71
02 12 22 32 42 52 62 72
03 13 23 33 43 53 63 73
04 14 24 34 44 54 64 74
05 15 25 35 45 55 65 75
06 16 26 36 46 56 66 76
07 17 27 37 47 57 67 77
08 18 28 38 48 58 68 78
09 19 29 39 49 59 69 79
0A 1A 2A 3A 4A 5A 6A 7A
0B 1B 2B 3B 4B 5B 6B 7B
0C 1C 2C 3C 4C 5C 6C 7C
0D 1D 2D 3D 4D 5D 6D 7D
0E 1E 2E 3E 4E 5E 6E 7E
0F 1F 2F 3F 4F 5F 6F 7F


In page 1 the count is biased by -6 after DA:

80 90 A0 B0 C0 D0 DA EA
81 91 A1 B1 C1 D1 DB EB
82 92 A2 B2 C2 D2 DC EC
83 93 A3 B3 C3 D3 DD ED
84 94 A4 B4 C4 D4 DE EE
85 95 A5 B5 C5 D5 DF EF
86 96 A6 B6 C6 D6 E0 F0
87 97 A7 B7 C7 D7 E1 F1
88 98 A8 B8 C8 D8 E2 F2
89 99 A9 B9 C9 D9 E3 F3
8A 9A AA BA CA DA E4 F4
8B 9B AB BB CB D5 E5 F5
8C 9C AC BC CC D6 E6 F6
8D 9D AD BD CD D7 E7 F7
8E 9E AE BE CE D8 E8 F8
8F 9F AF BF CF D9 E9 F9


In page 2 the count starts at FA, wraps from FF to 00, and ends at 32 - after that it's all 00s.

FA 0A 1A 2A 00 00 00 00
FB 0B 1B 2B 00 00 00 00
FC 0C 1C 2C 00 00 00 00
FD 0D 1D 2D 00 00 00 00
FE 0E 1E 2E 00 00 00 00
FF 0F 1F 2F 00 00 00 00
00 10 20 30 00 00 00 00
01 11 21 31 00 00 00 00
02 12 22 32 00 00 00 00
03 13 23 00 00 00 00 00
04 14 24 00 00 00 00 00
05 15 25 00 00 00 00 00
06 16 26 00 00 00 00 00
07 17 27 00 00 00 00 00
08 18 28 00 00 00 00 00
09 19 29 00 00 00 00 00


The third Game Gear (non-McWill) using a Game Gear EverDrive:

[ This is the original screen that could really benefit from VGA clarity but lacks it! ]

Reg: 66 E0 VBL: C1

Page 0 is a completely regular 8x16 grid, with hex digits 0-F progressing vertically in the "ones" column of each cell and hex digits 0-7 progressing horizontally in the "sixteens" column of each cell.

00 10 20 30 40 50 60 70
01 11 21 31 41 51 61 71
02 12 22 32 42 52 62 72
03 13 23 33 43 53 63 73
04 14 24 34 44 54 64 74
05 15 25 35 45 55 65 75
06 16 26 36 46 56 66 76
07 17 27 37 47 57 67 77
08 18 28 38 48 58 68 78
09 19 29 39 49 59 69 79
0A 1A 2A 3A 4A 5A 6A 7A
0B 1B 2B 3B 4B 5B 6B 7B
0C 1C 2C 3C 4C 5C 6C 7C
0D 1D 2D 3D 4D 5D 6D 7D
0E 1E 2E 3E 4E 5E 6E 7E
0F 1F 2F 3F 4F 5F 6F 7F


In page 1 the count is biased by -6 after DA:

80 90 A0 B0 C0 D0 DA EA
81 91 A1 B1 C1 D1 DB EB
82 92 A2 B2 C2 D2 DC EC
83 93 A3 B3 C3 D3 DD ED
84 94 A4 B4 C4 D4 DE EE
85 95 A5 B5 C5 D5 DF EF
86 96 A6 B6 C6 D6 E0 F0
87 97 A7 B7 C7 D7 E1 F1
88 98 A8 B8 C8 D8 E2 F2
89 99 A9 B9 C9 D9 E3 F3
8A 9A AA BA CA DA E4 F4
8B 9B AB BB CB D5 E5 F5
8C 9C AC BC CC D6 E6 F6
8D 9D AD BD CD D7 E7 F7
8E 9E AE BE CE D8 E8 F8
8F 9F AF BF CF D9 E9 F9


In page 2 the count starts at FA, wraps from FF to 00, and ends at 32 - after that it's all 00s.

FA 0A 1A 2A 00 00 00 00
FB 0B 1B 2B 00 00 00 00
FC 0C 1C 2C 00 00 00 00
FD 0D 1D 2D 00 00 00 00
FE 0E 1E 2E 00 00 00 00
FF 0F 1F 2F 00 00 00 00
00 10 20 30 00 00 00 00
01 11 21 31 00 00 00 00
02 12 22 32 00 00 00 00
03 13 23 00 00 00 00 00
04 14 24 00 00 00 00 00
05 15 25 00 00 00 00 00
06 16 26 00 00 00 00 00
07 17 27 00 00 00 00 00
08 18 28 00 00 00 00 00
09 19 29 00 00 00 00 00
  View user's profile Send private message
  • Joined: 05 Sep 2013
  • Posts: 4609
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Tue Jul 03, 2018 7:20 am
...so it looks like they all count $00-$DA, $D5-$FF - which is exactly what NTSC (60Hz) SMS do.
I've got to double check my detection code to see if I'm doing some silly mistakes, then :|
  View user's profile Send private message Visit poster's website
Reply to topic Goto page 1, 2, 3, 4, 5, 6  Next



Back to the top of this page

Back to SMS Power!