This website works better with JavaScript.
Home
Explore
lain.church
Help
Register
Sign In
izaya
/
collapseos
mirror of
https://github.com/hsoft/collapseos.git
Watch
1
Star
1
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
ti/lcd: ensure that variables are initialized
pull/75/head
Virgil Dupras
4 years ago
parent
a3c47f6272
commit
6a4bddc493
1 changed files
with
5 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
kernel/ti/lcd.asm
+ 5
- 0
kernel/ti/lcd.asm
View File
@@ -19,6 +19,7 @@
.equ LCD_CMD_XINC 0x05
.equ LCD_CMD_YINC 0x07
.equ LCD_CMD_COL 0x20
.equ LCD_CMD_ZOFFSET 0x40
.equ LCD_CMD_ROW 0x80
.equ LCD_CMD_CONTRAST 0xc0
@@ -30,6 +31,10 @@
; *** Code ***
lcdInit:
; Initialize variables
xor a
ld (LCD_CURROW), a
; Enable the LCD
ld a, LCD_CMD_ENABLE
call lcdWait
Write
Preview
Loading…
Cancel
Save