I am building my own OS called TBD OS
Very basic write now , started writing yesterday but whole day trying to fix the compiling process why it wasnt working. Finally got it working today.
I am using AsmOS's build8xu and buildos but not their files cause i wanted to start from scratch .
So far here's the code
Code:
Don't no why but in jstified it shows a black screen and in wabbitemu shows white .
I want the lcd to work on newer models so that's why I'm not doing the in a add a,a jr c loop thing. What is causing the lcd not showing correctly?
Thank-you , especially everyone who posted in https://www.cemetech.net/forum/viewtopic.php?t=5008
EDIT: I fixed the lcd thing, forgot to set power supply.
Another Edit: This poll will end when I make an edit saying this poll has ended , prolly in Jan 2026.
Very basic write now , started writing yesterday but whole day trying to fix the compiling process why it wasnt working. Finally got it working today.
I am using AsmOS's build8xu and buildos but not their files cause i wanted to start from scratch .
So far here's the code
Code:
jr Init
.db 0,0,0,0,0,0
.db 0, 0 ; rst 08h
.db 0,0,0,0,0
.db 0, 0 ; rst 10h
.db 0,0,0,0,0
.db 0,0 ; rst 18h
.db 0,0,0,0,0
.db 0, 0 ; rst 20h
.db 0,0,0,0,0
.db 0,0 ; rst 28h
.db 0,0,0,0,0
.db 0,0 ; rst 30h
.db 0,0,0,0,0,0,0
.db 0, 0 ; rst 38h / System Interrupt
.db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
.db 0,0,0,0,0,0,0,0,0
jp Init
.dw 0A55Ah
Init:
memInit:
ld a,1
out (6),a
in a,(2)
rlca
ld a,$41
jr nc,LowerModel
HigherModel:
out (5),a
ld a,$81
out (7),a
jr memDone
LowerModel:
out (6),a
out (7),a
memDone:
ld sp,0
lcdInit:
ld a,$40
out ($10),a
call lcdDelay
ld a,5
out ($10),a
call lcdDelay
ld a,1
out ($10),a
call lcdDelay
ld a,3
out ($10),a
call lcdDelay
ld a,$90
out ($10),a
call lcdDelay
ld a,$f3
out ($10),a
call lcdDelay
ld a,$20
out ($10),a
call lcdDelay
xor a
Start:
dec a
out ($11),a
call lcdDelay
xor a
out ($11),a
call lcdDelay
jr Start
lcdDelay:
ex (sp),hl
ex (sp),hl
inc (hl)
dec (hl)
ret
Don't no why but in jstified it shows a black screen and in wabbitemu shows white .
I want the lcd to work on newer models so that's why I'm not doing the in a add a,a jr c loop thing. What is causing the lcd not showing correctly?
Thank-you , especially everyone who posted in https://www.cemetech.net/forum/viewtopic.php?t=5008
EDIT: I fixed the lcd thing, forgot to set power supply.
Another Edit: This poll will end when I make an edit saying this poll has ended , prolly in Jan 2026.


