openMSX vdpcmdtrace "on" and game silviana

By PingPong

Prophet (3071)

PingPong's picture

01-04-2018, 18:50

Hi, all, i noticed the game SILVIANA does some strange vdp commands, with NEGATIVE values in the nx,ny registers.
Is this a bug on openMSX or a particular way to show some parameter of the commands?

VDPCmd HMMM-IMP (15,95)-&gtCrying47,95),0 [-16,-16]
VDPCmd HMMM-IMP (223,79)-&gtCrying255,79),0 [-16,-16]
VDPCmd HMMM-IMP (127,79)-&gtCrying159,79),0 [-48,-16]
VDPCmd HMMM-IMP (15,79)-&gtCrying47,79),0 [-16,-16]
VDPCmd HMMM-IMP (79,63)-&gtCrying111,63),0 [-48,-16]
VDPCmd HMMM-IMP (223,47)-&gtCrying255,47),0 [-16,-16]

Login or register to post comments

By wouter_

Champion (386)

wouter_'s picture

01-04-2018, 21:12

The nx/ny registers are reported as negative when the dix/dix bits (bits 2 and 3 in register R#45) are set. Meaning the copy direction is from right to left (or bottom to top) instead of from left to right (or top to bottom).

By Grauw

Enlighted (7012)

Grauw's picture

02-04-2018, 00:20

Neat debugging feature, I didn’t know about that!

VDPCmd  YMMM-IMP (0,782)->(0,1008),0 [256,2]   -- player sprite patterns copy
VDPCmd  HMMM-IMP (88,560)->(200,16),0 [4,16]   -- tile copies for diagonal scroll
VDPCmd  HMMM-IMP (8,512)->(200,32),0 [4,16]    -- ...
VDPCmd  HMMM-IMP (8,512)->(200,48),0 [4,16]
VDPCmd  HMMM-IMP (8,512)->(200,64),0 [4,16]
VDPCmd  HMMM-IMP (8,512)->(200,80),0 [4,16]
VDPCmd  HMMM-IMP (8,512)->(200,96),0 [4,16]
VDPCmd  HMMM-IMP (24,608)->(200,112),0 [4,16]
VDPCmd  HMMM-IMP (8,512)->(200,128),0 [4,16]
VDPCmd  HMMM-IMP (8,512)->(200,144),0 [4,16]
VDPCmd  HMMM-IMP (88,512)->(200,160),0 [4,16]
VDPCmd  HMMM-IMP (88,544)->(200,176),0 [4,16]
VDPCmd  HMMM-IMP (88,528)->(200,192),0 [4,16]
VDPCmd  HMMM-IMP (88,560)->(200,208),0 [4,16]
VDPCmd  HMMM-IMP (8,512)->(200,224),0 [4,16]
VDPCmd  HMMM-IMP (8,512)->(200,240),0 [4,16]
VDPCmd  HMMM-IMP (8,512)->(200,0),0 [4,16]
VDPCmd  HMMM-IMP (84,544)->(212,16),0 [4,16]
VDPCmd  HMMM-IMP (4,512)->(228,16),0 [4,16]
VDPCmd  HMMM-IMP (4,512)->(244,16),0 [4,16]
VDPCmd  HMMM-IMP (4,512)->(4,16),0 [4,16]
VDPCmd  HMMM-IMP (4,512)->(20,16),0 [4,16]
VDPCmd  HMMM-IMP (4,512)->(36,16),0 [4,16]
VDPCmd  HMMM-IMP (4,512)->(52,16),0 [4,16]
VDPCmd  HMMM-IMP (4,512)->(68,16),0 [4,16]
VDPCmd  HMMM-IMP (4,512)->(84,16),0 [4,16]
VDPCmd  HMMM-IMP (4,512)->(100,16),0 [4,16]
VDPCmd  HMMM-IMP (4,512)->(116,16),0 [4,16]
VDPCmd  HMMM-IMP (4,512)->(132,16),0 [4,16]
VDPCmd  HMMM-IMP (4,512)->(148,16),0 [4,16]
VDPCmd  HMMM-IMP (4,512)->(164,16),0 [4,16]
VDPCmd  HMMM-IMP (4,512)->(180,16),0 [4,16]
VDPCmd  HMMM-IMP (4,512)->(196,16),0 [4,16]
VDPCmd  YMMM-IMP (0,984)->(0,976),0 [256,4]    -- sprite colour table copy

Big smile

By PingPong

Prophet (3071)

PingPong's picture

02-04-2018, 11:10

thanks wouter

My MSX profile