Debian Codegraph @

extras/graphic_lcd/examples/ssd0323/glcd_test.asm

raw
1
2 ;; Node test
3 ;;
4 ;; The purpose of this program is to verify that nodes
5 ;; can interconnect I/O pins.
6
7
8 include "processor.inc"
9 include <coff.inc> ; Grab some useful macros
10
11 CONFIG OSC = HSPLL, OSCS = ON, WDT = ON, LVP = OFF
12 CONFIG CP0 = ON, CP1 = ON, CPB = ON
13
14 include "ssd0323.inc"
15 include "osram128x64.inc"
16 include "portdef.inc"
17
18 ;------------------------------------------------------------------------
19 ; gpsim command
20 .command macro x
21 .direct "C", x
22 endm
23
24
25 ;----------------------------------------------------------------------
26 ; Variable declarations
27 ;----------------------------------------------------------------------
28 GPR_DATA UDATA_ACS
29 temp RES 1
30
31
32 temp0 RES 1
33 temp1 RES 1
34 temp2 RES 1
35 temp3 RES 1
36
37 GLOBAL temp0, temp1, temp2, temp3
38
39
40 Tx RES 1
41 Ty RES 1
42
43 DISPLAY_DATA UDATA 400
44 DisplayBuffer RES LCD_nROWS*LCD_nCOLS/8
45 GLOBAL DisplayBuffer
46
47 ;------------------------------------------------------------------------
48 ; Code labels
49
50 GLOBAL done
51
52
53 ;----------------------------------------------------------------------
54 ; ********************* RESET VECTOR LOCATION ********************
55 ;----------------------------------------------------------------------
56 RESET_VECTOR CODE 0x000 ; processor reset vector
57 bra start ; go to beginning of program
58
59 ;----------------------------------------------------------------------
60 ; ******************* INTERRUPT VECTOR LOCATION ******************
61 ;----------------------------------------------------------------------
62
63 INT_VECTOR CODE 0x008 ; interrupt vector location
64 RETFIE 1
65
66 ;----------------------------------------------------------------------
67 ; ******************* MAIN CODE START LOCATION ******************
68 ;----------------------------------------------------------------------
69 MAIN CODE
70 start
71
72 ;;
73 ;; Define the simulation environment.
74 ;;
75
76 .sim "module library libgpsim_extras"
77 .sim "module library libgpsim_modules"
78
79 .sim "module load OSRAM128X64 LCD"
80 .sim "module load pullup R1"
81 .sim "module load pullup R2"
82
83 if InterfaceMode == Mode8080
84 .sim "module load pullup RBS1"
85 .sim "module load pullup RBS2"
86 endif
87
88 if InterfaceMode == Mode6800
89 .sim "module load pulldown RBS1"
90 .sim "module load pullup RBS2"
91 endif
92
93 if InterfaceMode == ModeSPI
94 .sim "module load pulldown RBS1"
95 .sim "module load pulldown RBS2"
96 endif
97
98 .sim "node nBS1"
99 .sim "node nBS2"
100 .sim "attach nBS2 RBS2.pin LCD.bs2"
101 .sim "attach nBS1 RBS1.pin LCD.bs1"
102
103
104 if InterfaceMode == Mode6800 || InterfaceMode == Mode8080
105 .sim "node nE"
106 .sim "node nRW"
107
108 .sim "attach nE porte0 LCD.e"
109 .sim "attach nRW porte1 LCD.rw"
110
111 .sim "node nd0 nd1 nd2 nd3 nd4 nd5 nd6 nd7"
112
113 .sim "attach nd0 portb0 LCD.d0"
114 .sim "attach nd1 portb1 LCD.d1"
115 .sim "attach nd2 portb2 LCD.d2"
116 .sim "attach nd3 portb3 LCD.d3"
117 .sim "attach nd4 portb4 LCD.d4"
118 .sim "attach nd5 portb5 LCD.d5"
119 .sim "attach nd6 portb6 LCD.d6"
120 .sim "attach nd7 portb7 LCD.d7"
121
122 else
123
124 .sim "module load pulldown Rgnd"
125 .sim "node nGnd"
126
127 .sim "attach nGnd Rgnd.pin LCD.d7 LCD.d6 LCD.d5 LCD.d4 LCD.d3 LCD.d2 LCD.e LCD.rw"
128
129 .sim "node nSDA nSCL"
130 .sim "attach nSDA portc5 LCD.d1"
131 .sim "attach nSCL portc3 LCD.d0"
132
133 endif
134
135
136 .sim "node nCS"
137 .sim "node nRES"
138 .sim "node nDC"
139 .sim "attach nDC porte2 LCD.dc"
140 .sim "attach nCS portd0 LCD.cs R2.pin"
141 .sim "attach nRES portd1 LCD.res"
142
143 ;; Now position the modules in the BreadBoard viewer
144
145 .sim "LCD.xpos=220.0"
146 .sim "LCD.ypos=24.0"
147 .sim "R1.xpos=216.0"
148 .sim "R1.ypos=264.0"
149 .sim "R2.xpos=312.0"
150 .sim "R2.ypos=264.0"
151 ; .sim "R3.xpos=376.0"
152 ; .sim "R3.ypos=264.0"
153
154
155 if InterfaceMode == ModeSPI
156
157 ;; Initialize the SPI port:
158 ;CKP == 1
159 ;CKE == 0
160
161 BCF TRISC, RC5
162 BCF TRISC, RC3
163
164 CLRF SSPSTAT
165 SPIClk_FOSC_64 EQU (1<<SSPM1)
166 MOVLW (1<<SSPEN)|(1<<CKP)|SPIClk_FOSC_64
167 MOVWF SSPCON1
168
169 endif
170
171 ;; Initialize the SSD0323 LCD graphics controller.
172
173 RCALL SSD0323_Init
174
175 ;; Set the virtual display size to match the physical display
176 MOVLW LCD_nROWS
177 MOVWF DisplaySizeY
178 MOVLW LCD_nCOLS
179 MOVWF DisplaySizeX
180
181 ;;########################################################################
182 ;;
183 ;; Main Loop
184
185 loop:
186 CLRWDT
187
188 ; Clear Screen Test
189
190 RCALL LCD_ClearScreen
191 RCALL LCD_RefreshEntireDisplay
192
193 ; Line Test
194
195 movlw 63
196 movwf Ty
197 movlw 127
198 movwf Tx
199 LL
200 clrwdt
201 movf Tx,W
202 MOVWF LCD_x2
203 movf Ty,W
204 MOVWF LCD_y2
205 MOVLW 0
206 MOVWF PixelX
207 MOVLW 1
208 MOVWF PixelY
209
210 RCALL LCD_Line
211 ; RCALL LCD_RefreshDisplay
212
213 decf Tx,F
214 BNN LL
215
216 CLRWDT
217 RCALL LCD_RefreshEntireDisplay
218 CLRWDT
219
220 MOVLW 0
221 MOVWF PixelX
222 MOVWF PixelY
223 MOVLW 99
224 MOVWF LCD_x2
225 MOVLW 15
226 MOVWF LCD_y2
227
228 RCALL LCD_Line
229 RCALL LCD_RefreshDisplay
230 CLRWDT
231
232 MOVLW 20
233 MOVWF PixelX
234 CLRF PixelY
235
236 .assert "\"Press run for next test\""
237 nop
238 RCALL LCD_ClearScreen
239
240 MOVLW 1
241 RCALL LCD_putBitMap
242 RCALL LCD_RefreshEntireDisplay
243 CLRWDT
244
245 .assert "\"Press run for next test\""
246 nop
247 RCALL LCD_ClearScreen
248
249 CLRF PixelX
250 MOVLW 0
251 RCALL LCD_putBitMap
252 RCALL LCD_RefreshEntireDisplay
253 CLRWDT
254
255 MOVLW 32
256 MOVWF PixelX
257
258 MOVLW 2
259 RCALL LCD_putBitMap
260 RCALL LCD_RefreshEntireDisplay
261 CLRWDT
262
263 MOVLW 32
264 MOVWF PixelY
265 CLRF PixelX
266
267 .assert "\"Press run for next test\""
268 nop
269 RCALL LCD_ClearScreen
270 RCALL LCD_RefreshEntireDisplay
271 CLRWDT
272
273 RCALL BarTest
274 RCALL TextTest
275
276 movlw 0
277 clrf Ty
278 rcall BitMapGrayscaleTest
279
280 movlw 10
281 movwf Ty
282 movlw 1
283 rcall BitMapGrayscaleTest
284
285 movlw 20
286 movwf Ty
287 movlw 2
288 rcall BitMapGrayscaleTest
289
290 movlw 30
291 movwf Ty
292 movlw 3
293 rcall BitMapGrayscaleTest
294
295 .assert "\" Stop test \""
296 nop
297 bra loop
298
299
300
301 ;========================================================================
302 TextTest:
303 ; Now do a text test.
304 if 1
305 MOVLW 127
306 MOVWF temp0
307 MOVLW 0
308 call SSD_SetColumnRange
309
310 MOVLW 63
311 MOVWF temp0
312 MOVLW 56
313 call SSD_SetRowRange
314 call LCD_ResetCursor
315 endif
316 RCALL LCD_ClearScreen
317 RCALL LCD_ResetCursor
318
319 MOVLW 'G'
320 rcall LCD_putc
321 MOVLW 'P'
322 rcall LCD_putc
323 MOVLW 'S'
324 rcall LCD_putc
325 MOVLW 'I'
326 rcall LCD_putc
327 MOVLW 'M'
328 rcall LCD_putc
329 MOVLW ' '
330 rcall LCD_putc
331 MOVLW '5'
332 rcall LCD_putc
333 MOVLW 'X'
334 rcall LCD_putc
335 MOVLW '7'
336 rcall LCD_putc
337 MOVLW ' '
338 rcall LCD_putc
339 MOVLW 'f'
340 rcall LCD_putc
341 MOVLW 'o'
342 rcall LCD_putc
343 MOVLW 'n'
344 rcall LCD_putc
345 MOVLW 't'
346 rcall LCD_putc
347
348 bra LCD_RefreshDisplay
349
350
351 ;========================================================================
352 BarTest:
353 if 0
354 if InterfaceMode == ModeSPI
355 ; Delay a little to allow the last data byte to complete.
356 movlw 64
357 SpiWait:
358 decfsz WREG,F
359 bra SpiWait
360 endif
361
362
363 ; This next test illustrates how to tell the SSD0323 that we
364 ; we want to draw in a small rectangular area. All we draw is
365 ; a gradient.
366 MOVLW LOW(WindowCursor)
367 MOVWF TBLPTRL
368 MOVLW HIGH(WindowCursor)
369 MOVWF TBLPTRH
370
371 MOVLW WindowCursorEnd-WindowCursor
372 MOVWF temp0
373
374 call CommandLoop
375
376 movlw 0
377 movwf Tx
378 clrf Ty
379
380 bars:
381
382 rcall SSD0323_Write
383 incf Ty,F
384 bcf Ty,4
385 swapf Ty,W
386 iorwf Ty,W
387
388 decfsz Tx,F
389 bra bars
390 endif
391 return
392
393
394 ;========================================================================
395
396 BitMapGrayscaleTest:
397
398 RLNCF WREG,W
399 ADDLW LOW(FontPtrs)
400 MOVWF TBLPTRL
401 MOVLW HIGH(FontPtrs)
402 SKPNC
403 ADDLW 1
404 MOVWF TBLPTRH
405
406 movlw 64
407 SpiWait:
408 decfsz WREG,F
409 bra SpiWait
410
411
412 TBLRD *+
413 MOVF TABLAT,W
414 TBLRD *+
415 MOVWF TBLPTRL
416 MOVF TABLAT,W
417 MOVWF TBLPTRH
418
419 ; MOVLW LOW(BitMapTest)
420 ; MOVWF TBLPTRL
421 ; MOVLW HIGH(BitMapTest)
422 ; MOVWF TBLPTRH
423
424
425 ; The first byte of the bitmap is the width and the second is the height
426
427
428 MOVLW 0x15
429 RCALL SSD0323_WriteCmd
430 MOVLW 0x00
431 RCALL SSD0323_WriteCmd
432 TBLRD *+
433 MOVF TABLAT,W
434 RCALL SSD0323_WriteCmd
435
436 MOVLW 0x75
437 RCALL SSD0323_WriteCmd
438 MOVF Ty,W
439 RCALL SSD0323_WriteCmd
440 TBLRD *+
441 MOVF TABLAT,W
442 ADDWF Ty,W
443 RCALL SSD0323_WriteCmd
444
445 TBLRD *+
446 MOVF TABLAT,W
447 MOVWF temp0
448 TBLRD *+
449 INCF TABLAT,W
450 MOVWF temp1
451
452 GSLoop:
453 RCALL CommandWaitForSPI
454 TBLRD *+
455 MOVF TABLAT,W
456 RCALL SSD0323_Write
457 dcfsnz temp0,f
458 decfsz temp1,f
459 bra GSLoop
460
461 ; decfsz temp0,F
462 RCALL CommandWaitForSPI
463 return
464
465 WindowCursor:
466 ; CmdSetColumnAddress EQU 0x15
467 ; CmdSetRowAddress EQU 0x75
468 ;
469 ; This test command defines an 16 by 16 rectangular region starting at
470 ; row 0x21 and column 0x08
471
472 db 0x15, 0x08, 0x17, 0x75, 0x21, 0x30
473 WindowCursorEnd:
474
475
476 BITMAPS CODE 0x3400
477
478 FontPtrs:
479 dw CourierNumbers, CourierNumbersBold, Numbers4, N46
480 BitMapTest:
481
482 CourierNumbersBold:
483 ;bold Courier 10
484 db 0x21, 7, low(272), high(272)
485 db 0x80,0xEF,0x08,0x10,0xD8,0x09,0x00,0xE8,0xDF,0x03,0xA0,0xFE,0x1B,0x00,0x00,0xF2
486 db 0x0C,0xF0,0xFF,0xEF,0x00,0x30,0xFB,0x0E,0xE0,0xFF,0xFF,0x00,0xC3,0xEF,0x09,0x20
487 db 0xFC,0x1B,0xF7,0x88,0x6F,0x70,0xFD,0x0A,0x10,0x7F,0xF8,0x0D,0x50,0x85,0x8F,0x00
488 db 0x00,0xFB,0x0F,0xF0,0x5C,0x45,0x00,0xF2,0x2A,0x00,0xA0,0x55,0xBD,0x00,0xEE,0x86
489
490 db 0x8F,0xC0,0x6E,0x9F,0xDD,0x00,0xCD,0x00,0xF0,0x0A,0x00,0x00,0xF0,0x0F,0x00,0x20
491 db 0x8F,0x00,0x40,0xAE,0x0F,0xF0,0x0A,0x00,0x00,0xEA,0x01,0x00,0x00,0x10,0x6F,0x00
492 db 0xCD,0x42,0x7F,0xF0,0x0A,0xEA,0xAF,0x00,0xFA,0x00,0xF0,0x0A,0x00,0x00,0xF8,0x09
493 db 0x00,0xFD,0x0D,0x00,0xC0,0xA6,0x0F,0xF0,0xFF,0x4E,0x00,0xEE,0xFF,0x04,0x00,0x60
494
495 db 0x2F,0x00,0xE2,0xFF,0x0A,0xE0,0x2D,0xFD,0xAF,0x00,0xFA,0x00,0xF0,0x0A,0x00,0x50
496 db 0xBF,0x00,0x00,0xC9,0x5F,0x00,0xE5,0xA0,0x2F,0x50,0x55,0xDE,0x00,0xEF,0xE5,0x0D
497 db 0x00,0xC0,0x0D,0x00,0xEA,0x85,0x5F,0x60,0xFF,0xEE,0xDD,0x00,0xDD,0x00,0xF0,0x0A
498 db 0x00,0xF3,0x0A,0x00,0x00,0x00,0x9F,0x00,0xFA,0xFF,0xFF,0x00,0x00,0xFA,0x00,0xAE
499
500 db 0xA0,0x0F,0x00,0xF2,0x08,0x00,0xAF,0x00,0x9F,0x00,0x22,0xAD,0xF7,0x88,0x7F,0x30
501 db 0xF5,0x4C,0x00,0xEE,0x67,0x0F,0xC4,0x97,0x7F,0x00,0x21,0xD7,0x6F,0xB2,0x78,0xCF
502 db 0x00,0xEA,0xE6,0x0C,0x00,0xF8,0x03,0x00,0xFC,0x96,0x6F,0x00,0x91,0x2F,0x80,0xFF
503 db 0x08,0xE0,0xFF,0xEF,0x10,0xFF,0xFF,0x0F,0xB1,0xFF,0x09,0x00,0x00,0xFE,0xEF,0xD2
504
505 db 0xFF,0x2B,0x00,0xB1,0xCF,0x02,0x00,0xEE,0x00,0x00,0xB2,0xEF,0x08,0xD0,0xCF,0x03
506
507 CourierNumbers:
508 ;Courier 10
509 db 0x22, 7, low(280), high(280)
510 db 0x10,0xEC,0x0A,0x00,0x80,0xDA,0x00,0x20,0xEC,0x2C,0x00,0xB2,0xDD,0x04,0x00,0x80
511 db 0x0D,0x10,0xEF,0xDE,0x01,0x00,0xB3,0xAD,0x00,0xEF,0xEE,0x0D,0x50,0xED,0x3C,0x00
512 db 0xD4,0x9D,0x00,0xA0,0x07,0x6A,0x00,0x00,0xE1,0x00,0x90,0x06,0xB5,0x00,0x00,0x40
513 db 0x0D,0x00,0xA2,0x0E,0x10,0x0E,0x00,0x00,0x30,0x2D,0x00,0x00,0x05,0x70,0x09,0xF0
514 db 0x02,0xD4,0x00,0x3E,0x70,0x07,0xF0,0x01,0xB4,0x00,0x00,0xE1,0x00,0x00,0x00,0xD2
515 db 0x00,0x00,0x72,0x09,0x00,0x3B,0x0E,0x10,0xCF,0x9E,0x00,0xB0,0x03,0x00,0x00,0x00
516 db 0xD0,0x03,0xE0,0x03,0xB5,0x10,0x0F,0x20,0x0C,0xF1,0x00,0xE1,0x00,0x00,0xE1,0x00
517 db 0x00,0x00,0x98,0x00,0x00,0xEB,0x03,0x40,0x19,0x0E,0x10,0x2D,0xA0,0x08,0xE0,0xEA
518 db 0x1B,0x00,0x00,0xD4,0x00,0x40,0xEF,0x2F,0x00,0x5D,0x70,0x0E,0xF1,0x00,0xE1,0x00
519 db 0x00,0xE1,0x00,0x00,0x60,0x0C,0x00,0x00,0x50,0x0C,0xD0,0x11,0x0E,0x00,0x00,0x20
520 db 0x0D,0xF1,0x05,0xA8,0x00,0x00,0x6B,0x00,0xD0,0x04,0xA7,0x00,0xC2,0x9E,0x0D,0xF0
521 db 0x01,0xC3,0x00,0x00,0xE1,0x00,0x00,0xD5,0x01,0x00,0x00,0x10,0x0E,0xF1,0xFF,0xCF
522 db 0x00,0x00,0x20,0x0D,0xE0,0x00,0xE2,0x00,0x20,0x1F,0x00,0xF1,0x00,0xE1,0x00,0x00
523 db 0x60,0x08,0xA0,0x07,0x7A,0x00,0x00,0xE1,0x00,0x60,0x1D,0x50,0x00,0x4D,0x70,0x0A
524 db 0x00,0x10,0x0E,0x00,0x00,0xA0,0x08,0xB0,0x04,0xB6,0x00,0x90,0x0A,0x00,0xE0,0x04
525 db 0xB6,0x00,0x00,0xD4,0x01,0x10,0xEC,0x0A,0x00,0xC0,0xFE,0x0D,0xE0,0xFF,0xDF,0x00
526 db 0xE5,0xBE,0x01,0x00,0xD0,0xAF,0x00,0xDB,0xAE,0x00,0x10,0xEB,0x2C,0x00,0xF0,0x04
527 db 0x00,0x30,0xED,0x1C,0x00,0xDC,0x2A,0x00
528
529
530 Numbers4:
531 db 0x1c, 7, low(174), high(174)
532 db 0xE3,0x3E,0x00,0xE0,0x0F,0x00,0xF0,0x6E,0x00,0xF0,0x7F,0x00,0xE0,0x0F,0x00,0xF0
533 db 0xFF,0x00,0xB1,0xEF,0x00,0xFF,0xFF,0x00,0xC6,0x5C,0x00,0xE5,0x3D,0x5C,0xC5,0x00
534 db 0x00,0x0F,0x00,0x00,0xF2,0x00,0x00,0xE3,0x00,0xC4,0x0F,0x00,0xF0,0x00,0x00,0x8A
535 db 0x00,0x00,0x00,0x96,0x00,0x3E,0xE3,0x00,0x3E,0xC3,0xCF,0xF0,0x00,0x00,0x0F,0x00
536
537 db 0x00,0xB3,0x00,0x00,0x6F,0x00,0x78,0x0F,0x00,0xE0,0x5E,0x00,0xAF,0x6F,0x00,0x00
538 db 0x1D,0x00,0xF4,0x4F,0x00,0x3F,0xF5,0x0F,0xF0,0x00,0x00,0x0F,0x00,0x10,0x1C,0x00
539 db 0x00,0xE3,0x00,0x2D,0x0F,0x00,0x00,0xE2,0x00,0x5F,0xF3,0x00,0x80,0x07,0x00,0x4D
540 db 0xD4,0x00,0xF6,0xEB,0x4C,0xC5,0x00,0x00,0x0F,0x00,0x90,0x04,0x00,0x00,0xE3,0x00
541
542 db 0xFF,0xFF,0x00,0x00,0xE3,0x00,0x4B,0xE2,0x00,0xD2,0x00,0x00,0x3F,0xF3,0x00,0x00
543 db 0xA8,0xE4,0x3E,0x00,0xF0,0xFF,0x00,0xF0,0xFF,0x00,0xF0,0x5E,0x00,0x00,0x0F,0x00
544 db 0xF0,0x5F,0x00,0xD2,0x5F,0x00,0x4B,0x00,0x00,0xE6,0x6E,0x00,0xFF,0x1B
545
546 N46:
547 db 0x10, 0x24, low(408), high(408)
548
549 db 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
550 db 0x52,0x00,0x00,0x00,0x00,0x00,0xF3,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x83
551 db 0xFC,0x9E,0x00,0x00,0x00,0x00,0x10,0xFE,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0xC5
552 db 0xFF,0x3A,0x00,0x00,0x00,0x00,0x00,0xC0,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0xB2
553
554 db 0xFF,0x3D,0x00,0x00,0x00,0x00,0x00,0x00,0xF9,0xFF,0xFF,0x00,0x00,0x00,0x00,0x50
555 db 0xFF,0xCF,0x01,0x00,0x00,0x00,0x00,0x00,0x60,0xFE,0xFF,0xFF,0x00,0x00,0x00,0x00
556 db 0xF6,0xFF,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,0xF3,0xF3,0xFF,0xFF,0x00,0x00,0x00
557 db 0x40,0xFF,0xFF,0x04,0x00,0x00,0x00,0x00,0x00,0x10,0x8E,0xF0,0xFF,0xFF,0x00,0x00
558
559 db 0x00,0xE1,0xFF,0xBF,0x00,0x00,0x00,0x00,0x00,0x00,0xB0,0x0C,0xF0,0xFF,0xFF,0x00
560 db 0x00,0x00,0xF9,0xFF,0x4F,0x00,0x00,0x00,0x00,0x00,0x00,0xE8,0x01,0xF0,0xFF,0xFF
561 db 0x00,0x00,0x10,0xFF,0xFF,0x0E,0x21,0x01,0x00,0x00,0x00,0x40,0x5F,0x00,0xF0,0xFF
562 db 0xFF,0x00,0x00,0x60,0xFF,0xFF,0xEF,0xFF,0xEF,0x18,0x00,0x00,0xE1,0x09,0x00,0xF0
563
564 db 0xFF,0xFF,0x00,0x00,0xA0,0xFF,0xFF,0x07,0x91,0xFF,0xEF,0x03,0x00,0xDB,0x00,0x00
565 db 0xF0,0xFF,0xFF,0x00,0x00,0xD0,0xFF,0xFF,0x02,0x00,0xFC,0xFF,0x0E,0x60,0x2F,0x00
566 db 0x00,0xF0,0xFF,0xFF,0x00,0x00,0xF0,0xFF,0xFF,0x01,0x00,0xF6,0xFF,0x7F,0xF2,0x06
567 db 0x00,0x00,0xF0,0xFF,0xFF,0x00,0x00,0xF0,0xFF,0xFF,0x00,0x00,0xF3,0xFF,0xCF,0xF8
568
569 db 0xDD,0xDD,0xDD,0xFD,0xFF,0xFF,0xFE,0x02,0xF0,0xFF,0xFF,0x00,0x00,0xF1,0xFF,0xFF
570 db 0xF8,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x02,0xD0,0xFF,0xFF,0x00,0x00,0xF0,0xFF
571 db 0xFF,0xF8,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x02,0xA0,0xFF,0xFF,0x00,0x00,0xF0
572 db 0xFF,0xEF,0xF8,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x02,0x60,0xFF,0xFF,0x02,0x00
573
574 db 0xF0,0xFF,0xBF,0x00,0x00,0x00,0x00,0xF0,0xFF,0xFF,0x00,0x00,0x10,0xFF,0xFF,0x04
575 db 0x00,0xF0,0xFF,0x6F,0x00,0x00,0x00,0x00,0xF0,0xFF,0xFF,0x00,0x00,0x00,0xF7,0xFF
576 db 0x06,0x00,0xF1,0xFF,0x0E,0x00,0x00,0x00,0x00,0xF0,0xFF,0xFF,0x00,0x00,0x00,0xB0
577 db 0xFF,0x0B,0x00,0xF4,0xFF,0x04,0x00,0x00,0x00,0x00,0xF0,0xFF,0xFF,0x00,0x00,0x00
578
579 db 0x00,0xFA,0x5F,0x00,0xFB,0x4E,0x00,0x00,0x00,0x00,0x00,0xF0,0xFF,0xFF,0x00,0x00
580 db 0x00,0x00,0x40,0xEA,0xFF,0x7C,0x01,0x00
581
582 db 8, 8 ; size
583 db 0x10,0x32, 0x54,0x76, 0x98,0xba, 0xdc,0xfe
584 db 0x10,0x32, 0x54,0x76, 0x98,0xba, 0xdc,0xfe
585 db 0x10,0x32, 0x54,0x76, 0x98,0xba, 0xdc,0xfe
586 db 0x10,0x32, 0x54,0x76, 0x98,0xba, 0xdc,0xfe
587
588 db 0x10,0x32, 0x54,0x76, 0x98,0xba, 0xdc,0xfe
589 db 0x10,0x32, 0x54,0x76, 0x98,0xba, 0xdc,0xfe
590 db 0x10,0x32, 0x54,0x76, 0x98,0xba, 0xdc,0xfe
591 db 0x10,0x32, 0x54,0x76, 0x98,0xba, 0xdc,0xfe
592
593 ; botched A
594 db 0x00, 0x11, 0xcc, 0x00
595 db 0x00, 0x44, 0xdd, 0x00
596 db 0x00, 0x44, 0x66, 0x00
597 db 0x00, 0x33, 0x00, 0x00
598 db 0x00, 0x00, 0x44, 0x55
599 db 0x00, 0x22, 0x22, 0xaa
600 db 0x11, 0x99, 0x00, 0xff
601 db 0xff, 0xff, 0x00, 0xff
602
603
604 BitMapTestEnd:
605
606 nop
607
608 done:
609
610 .assert "\"*** PASSED LCD test\""
611 goto $
612
613 FAILED:
614 .assert "\"*** FAILED LCD test\""
615 goto $
616
617
618
619 end