Guest User

Untitled

a guest
Jan 19th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. type
  2. TVidMem = ptr array[0..65_000, CGA_Char]
  3.  
  4.  
  5. proc cgaShow*(videoRam: TVidMem, x, y: int, c: cchar, attrib: cuchar) =
  6. videoRam[y*80+x].c = c
  7. videoRam[y*80+x].attrib = attrib
  8.  
  9. #vs
  10. type
  11. TVidMem = ptr array[0..65_000, CGA_Char]
  12.  
  13. proc cgaShow*(videoRam: var TVidMem, x, y: int, c: cchar, attrib: cuchar) =
  14. videoRam[y*80+x].c = c
  15. videoRam[y*80+x].attrib = attrib
Add Comment
Please, Sign In to add comment