Notice: Trying to access array offset on value of type bool in /mnt/cpcwiki-httpdocs/includes/libs/IPSet.php on line 243

Notice: Trying to access array offset on value of type bool in /mnt/cpcwiki-httpdocs/includes/libs/IPSet.php on line 246

Notice: Trying to access array offset on value of type bool in /mnt/cpcwiki-httpdocs/includes/libs/IPSet.php on line 243

Notice: Trying to access array offset on value of type bool in /mnt/cpcwiki-httpdocs/includes/libs/IPSet.php on line 246

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /mnt/cpcwiki-httpdocs/includes/diff/DairikiDiff.php on line 434
Changes - CPCWiki

Changes

 == Calculating xpos,ypos to screen address in assembly ==
The screen address at a given x,y position can be calculated as such:
[pre]
screenaddr = screenbase + (y AND 7)*&800 + int(y/8)*2*R1 + int(x/M)
[;; screenaddr = screenbase + (y AND 7)*&800 + int(y/pre]8)*2*R1 + int(x/M)  
where:
screenbase = &C000
 
 
 
[[Category:Programming]]
2,912
edits