hfxdesign

LEM1802 Display Driver v1.01

Apr 8th, 2013
593
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. :find_display
  2.     HWN I
  3.     :find_display_loop
  4.         SUB I, 1
  5.         HWQ I
  6.        
  7.         IFE B, [hw_display+1]
  8.             IFE A, [hw_display+2]
  9.                 SET [hw_display], I
  10.                    
  11.         IFN I, 0   
  12.             SET PC, find_display_loop
  13. SET PC, POP
  14.    
  15. :update_display
  16.     SET A, 3
  17.     SET B, [disp_border]
  18.     HWI [hw_display]
  19.    
  20.     SET A, 2
  21.     SET B, [disp_colormap]
  22.     HWI [hw_display]
  23.    
  24.     SET A, 1
  25.     SET B, [disp_fontmap]
  26.     HWI [hw_display]
  27.     JSR refresh_display
  28. SET PC, POP
  29.  
  30. :flip_page
  31.     XOR [disp_buffer], [disp_buffer+1]
  32.     XOR [disp_buffer+1], [disp_buffer]
  33.     XOR [disp_buffer], [disp_buffer+1]
  34.    
  35. :refresh_display
  36.     SET A, 0
  37.     SET B, [disp_buffer]
  38.     HWI [hw_display]
  39. SET PC, POP
  40.  
  41. :clear_buffer
  42.     SET I, [disp_buffer+1]
  43.     SET J, 0
  44.     :clear_buffer_loop
  45.         STI, [I], 0
  46.         IFL J, 0x180
  47.             SET PC, clear_buffer_loop
  48. SET PC, POP
  49. ;-----------------------------------------------------
  50. :hw_display
  51.     DAT 0, 0x7349, 0xF615 ;[HWI Address, ID 0, ID 1]
  52.    
  53. :disp_buffer
  54.     DAT 0x8000, 0x8180 ;[Onscreen/Front Buffer, Backbuffer]
  55.    
  56. :disp_border ;Border color [0-16]
  57.     DAT 0
  58. :disp_fontmap ;Use .include [fontmap file] if not default
  59.     DAT 0
  60. :disp_colormap ;Use .include [colormap file] if not default
  61.     DAT 0
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×