Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. TI-84 Plus LCD Port Reference ([Really] Abridged)
  2.  
  3. Z80 Ports: $10: Command Register ; $11 = Data Register
  4. All reads/writes are 16-bits, in big-endian format. Two in/outs req'd.
  5. Command register is 8 bit, but must send 16 bits; do by duping send.
  6. Most commands have bitmap arguments. Prefix % means binary, $ is hex.
  7. DOCUMENTATION IS ADJUSTED FOR INSTALLED SCREEN ORIENTATION FOR CALC.
  8. ALL REFERENCES OF POSITIONING (HORIZ/VERT) ADJUSTED FOR THIS.
  9.  
  10. Code example: To set default entry mode:
  11. ld a,$03 \ out ($10),a \ out ($10),a
  12. ld hl,DEFAULTVALUE \ ld c,$11 \ out (c),h \ out (c),L
  13.  
  14. COMMAND $01 (Driver Output Control)
  15. FEDCBA9876543210
  16. -----I-S--------
  17. I: Set to enable interlace mode. Important for partial image display trick.
  18. S: Set to flip the screen along vertical axis.
  19.  
  20. COMMAND $03 (Entry Mode)
  21. FEDCBA9876543210
  22. TD-B----O-IIA---
  23. TD: Color transfer and mapping. Set both bits to zero for our purposes.
  24. B: BGR swap. 0=RGB,1=BGR
  25. O: Origin Adr. 0=manual positioning. 1=reset pos to win corner on manual pos chng
  26. I: inc/dec modes. Set to both 1's for increment move and increment wrap
  27. bit 4:inc/dec on line wrap; bit 3:inc/dec on mov't on current line
  28. A: h/v mode. 0=vertical 1=horizontal.
  29. Suggestions: Set II and A to all 1's for horizontal aligned goodness.
  30.  
  31. COMMAND $07 (Display Control 1)
  32. FEDCBA9876543210
  33. --PP---B--GDC-SS
  34. SS: On-off controls. Leave at %11. Too complicated to actually turn off
  35. C: Color mode. Set to enable 8-bit color mode. Just leave this off.
  36. GD: %11 for norm display. Complicated otherwise
  37. B: Base image display. Turn off if using partial image display trick.
  38. PP: Set to enable partial display. bit D: pdisp2, bit C: pdisp1
  39.  
  40. COMMAND $20/$21 (y/x adr)
  41. $20: max:239 ; $21: max:319
  42. Sets cursor position. If origin adr bit set, resets x/y to win corner start
  43.  
  44. COMMAND $22 (Write Data)
  45. Outputs data to screen depending on all previously selected settings.
  46. Autoadjusts cursor depending on display control settings
  47.  
  48. COMMAND $23 (Read Data)
  49. Reads data from data register. Requires 2 byte dummy read before next read
  50. is valid. Cursor is NOT changed. Used to facilitate read/write cycles.
  51.  
  52. COMMAND $50/$51/$52/$53 (Windowing mode boundary set)
  53. Sets window mode boundaries. Numbers specified are inclusive.
  54. $50: Ymin (0) ; $51: Ymax (239) ; $52: Xmin (0) ; $53: Xmax (319)
  55.  
  56. COMMAND $80,$81,$82 (Partial Image 1 Display Settings)
  57. All values are column numbers (0-319) where...
  58. $80: Onscreen start ; $81: GRAM start ; $82: GRAM end [($81)<=($82)]
  59.  
  60. COMMAND $83,$84,$85 (Partial Image 2 Display Settings)
  61. All values are column numbers (0-319) where...
  62. $83: Onscreen start ; $84: GRAM start ; $85: GRAM end [($84)<=($85)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement