Compare commits
No commits in common. "bcc7c827ab88bc4806aac1f9468711eef32abd8e" and "635ed1be4216f7de8fb98c0827c8ba5fe13a031e" have entirely different histories.
bcc7c827ab
...
635ed1be42
|
@ -36,22 +36,18 @@ identify := fn(): u8 {
|
||||||
log.info("Waiting for status.\0")
|
log.info("Waiting for status.\0")
|
||||||
loop {
|
loop {
|
||||||
if (status & STAT_BSY) == 0 {
|
if (status & STAT_BSY) == 0 {
|
||||||
log.info("Status got.\0")
|
|
||||||
break
|
break
|
||||||
} else {
|
} else {
|
||||||
sloop()
|
sloop()
|
||||||
}
|
}
|
||||||
status = inb(ATA_PRIMARY_COMM_REGSTAT)
|
status = inb(ATA_PRIMARY_COMM_REGSTAT)
|
||||||
}
|
}
|
||||||
if status == 0 {
|
log.info("Status got\0")
|
||||||
log.error("No drive detected.\0")
|
if status == 0 return 0
|
||||||
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
log.info("Status indicates presence of a drive. Polling while STAT_BSY... \0")
|
log.info("Status indicates presence of a drive. Polling while STAT_BSY... \0")
|
||||||
loop {
|
loop {
|
||||||
if (status & STAT_BSY) == 0 {
|
if (status & STAT_BSY) == 0 {
|
||||||
log.info("Status got.\0")
|
|
||||||
break
|
break
|
||||||
} else {
|
} else {
|
||||||
sloop()
|
sloop()
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
# hblang²
|
|
||||||
The hblang² or hblang2 compiler is intended to compile hblang to hbvm bytecode while also being written in hblang.
|
|
||||||
|
|
||||||
This is the first step in bootstrapping ableOS.
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
[package]
|
|
||||||
name = "hblang2"
|
|
||||||
authors = [""]
|
|
||||||
|
|
||||||
[dependants.libraries]
|
|
||||||
|
|
||||||
[dependants.binaries]
|
|
||||||
hblang.version = "1.0.0"
|
|
||||||
|
|
||||||
[build]
|
|
||||||
command = "hblang src/main.hb"
|
|
|
@ -1,5 +0,0 @@
|
||||||
stn := @use("stn")
|
|
||||||
|
|
||||||
main := fn(): int {
|
|
||||||
return 0
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
# Sunset Server
|
|
||||||
|
|
||||||
## Omnibar
|
|
||||||
The omnibar is a clone of the polybar concept and will be configured via lisp.
|
|
||||||
|
|
||||||
|
|
||||||
probably should be spawned in as a window with special permission to not draw window decorators
|
|
||||||
|
|
||||||
not drawing decorators could also function as a full screen of sorts if it resizes
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "sunset_server"
|
name = "sunset_server"
|
||||||
authors = ["able", "koniifer"]
|
authors = ["koniifer"]
|
||||||
|
|
||||||
[dependants.libraries]
|
[dependants.libraries]
|
||||||
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
(meta height:(+ font_height 1))
|
|
||||||
|
|
||||||
(horizontal
|
|
||||||
(label last_pressed_key)
|
|
||||||
(seperator percent:10))
|
|
|
@ -83,9 +83,7 @@ main := fn(): int {
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
/* Omnibar */
|
pos := Vec2(uint).(1, screen.height - 21)
|
||||||
omnibar_height := 21
|
|
||||||
pos := Vec2(uint).(1, screen.height - omnibar_height)
|
|
||||||
render_label_to_surface(screen, text_label, font, pos)
|
render_label_to_surface(screen, text_label, font, pos)
|
||||||
render.put_rect(screen, .(0, screen.height - 21), .(screen.width - 1, 20), sunset.server.DECO_COLOUR)
|
render.put_rect(screen, .(0, screen.height - 21), .(screen.width - 1, 20), sunset.server.DECO_COLOUR)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue