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