80-column mode, and DHGR actually starts seven bits (14.318180 MHz
periods) sooner (one 80-column character width) than 40-column mode,
which explains the shift in colors if either you don't do the shift to
compensate, or you don't simulate the whole dot stream coming out of the
shift registers.
Try this on a IIe or IIc to see the effect:
1 D = 500
2 PR# 3: PRINT " "
5 GOTO 100
10 PRINT CHR$ (17);
20 FOR X = 1 to D: NEXT
30 PRINT CHR$ (18);
40 FOR X = 1 to D: NEXT
50 GOTO 10
100 HGR : POKE 49246,0
101 DATA 160,0,132,0,162,32,134,1,141,84,192,177,0,141,85,192,145,0,200
,208,243,230,1,202,208,238,96
102 FOR A = 768 TO 794: READ X: POKE A,X: NEXT
110 HCOLOR= 3: HPLOT 0,0: CALL 62454
120 GOTO 10
You will see the left and right borders moving left and right a bit as
the display switches from 80 columns to 40 columns and back.
--
--
Jerry awanderin at yahoo dot ca