Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Determine memory size (tricky)
- ;
- ;1. Set the first byte of memory page one to 0x00
- ;2. Write 0xFF to the first byte of every page with page number = (2^n)+1 (n = 1..8)
- ;3. Every time writing 0xFF, check for the first byte on page 1 being ~= 0x00
- ;4. When 3. is true, subtract 2 from the last page number and store the result as the maximum available page
Advertisement
Add Comment
Please, Sign In to add comment