Changes
Jump to:
navigation
,
search
Programming:Calculating xpos,ypos to screen address in assembly
7 bytes removed
,
11:53, 25 December 2018
== Calculating xpos,ypos to screen address ==
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:
← Older edit
Fgbrain
2,912
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
Special page
Variants
Views
More
Search
Contents
Main Page
Random page
Recent changes
CPCWiki portal
Content Categories
Hardware
Amstrad CPC Buyers' Guide for new users
In short
CPC 464/664/6128
CPC+/GX4000
Peripherals
DIY & Repair
Gallery
Software
The Games
Serious software
Programming
Emulators
Printed matter
Books, magazines, technical, manuals
The Scene
Groups/Members
Parties/Events
Links
Wiki-related
Upload file
Upload multi files
Special Pages
About - Contribute
Statistics
Create Page
Editing Help
Discussion forum
Tools
Special pages