Guest User

Untitled

a guest
Aug 19th, 2014
7
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;Determine memory size (tricky)
  2. ;
  3. ;1. Set the first byte of memory page one to 0x00
  4. ;2. Write 0xFF to the first byte of every page with page number = (2^n)+1 (n = 1..8)
  5. ;3. Every time writing 0xFF, check for the first byte on page 1 being ~= 0x00
  6. ;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