mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-26 08:18:05 +11:00
Compare commits
No commits in common. "8a696a1e23cc94f4db71489cfb39d0cf9e2747a8" and "1f26879cd33b8a9e3fd1ca424ccf50135c7bd303" have entirely different histories.
8a696a1e23
...
1f26879cd3
@ -19,14 +19,6 @@ manage to build and install Collapse OS without external resources (i.e.
|
|||||||
internet) on a machine of her design, built from scavenged parts with low-tech
|
internet) on a machine of her design, built from scavenged parts with low-tech
|
||||||
tools.
|
tools.
|
||||||
|
|
||||||
## See it in action
|
|
||||||
|
|
||||||
Michael Schierl has put together [a set of emulators running in the browser that
|
|
||||||
run Collapse OS in different contexts][jsemul].
|
|
||||||
|
|
||||||
Using those while following along with the [User Guide](doc/) is your quickest
|
|
||||||
path to giving Collapse OS a try.
|
|
||||||
|
|
||||||
## Organisation of this repository
|
## Organisation of this repository
|
||||||
|
|
||||||
* `kernel`: Pieces of code to be assembled by the user into a kernel.
|
* `kernel`: Pieces of code to be assembled by the user into a kernel.
|
||||||
@ -47,4 +39,3 @@ for more information.
|
|||||||
|
|
||||||
[libz80]: https://github.com/ggambetta/libz80
|
[libz80]: https://github.com/ggambetta/libz80
|
||||||
[web]: https://collapseos.org
|
[web]: https://collapseos.org
|
||||||
[jsemul]: https://schierlm.github.io/CollapseOS-Web-Emulator/
|
|
||||||
|
@ -84,8 +84,8 @@ init:
|
|||||||
; setup stack
|
; setup stack
|
||||||
ld hl, KERNEL_RAMEND
|
ld hl, KERNEL_RAMEND
|
||||||
ld sp, hl
|
ld sp, hl
|
||||||
ld hl, emulGetC
|
ld hl, emulGetB
|
||||||
ld de, emulPutC
|
ld de, emulPutB
|
||||||
call stdioInit
|
call stdioInit
|
||||||
call fsInit
|
call fsInit
|
||||||
ld a, 0 ; select fsdev
|
ld a, 0 ; select fsdev
|
||||||
@ -97,13 +97,13 @@ init:
|
|||||||
ld (SHELL_CMDHOOK), hl
|
ld (SHELL_CMDHOOK), hl
|
||||||
jp shellLoop
|
jp shellLoop
|
||||||
|
|
||||||
emulGetC:
|
emulGetB:
|
||||||
; Blocks until a char is returned
|
; Blocks until a char is returned
|
||||||
in a, (STDIO_PORT)
|
in a, (STDIO_PORT)
|
||||||
cp a ; ensure Z
|
cp a ; ensure Z
|
||||||
ret
|
ret
|
||||||
|
|
||||||
emulPutC:
|
emulPutB:
|
||||||
out (STDIO_PORT), a
|
out (STDIO_PORT), a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user