Add pseudoteletypewriter to emulator

https://justine.storage.googleapis.com/emulator628.mp4
This commit is contained in:
Justine Tunney 2020-08-26 23:08:08 -07:00
parent e86cff8ba0
commit 5aabacb361
94 changed files with 3245 additions and 2179 deletions

View file

@ -19,8 +19,6 @@
*/
#include "libc/macros.h"
cmpxchg %ecx,(%rdx)
.section .start,"ax",@progbits
emucrt: bofram 9f
movslq (%rsp),%rdi # argc

View file

@ -22,7 +22,7 @@ ENTRY(_start)
SECTIONS {
.text : {
.text IMAGE_BASE_VIRTUAL : {
*(.start)
KEEP(*(.initprologue))
KEEP(*(SORT_BY_NAME(.init.*)))

View file

@ -5,7 +5,7 @@ PKGS += TOOL_BUILD_EMUCRT
TOOL_BUILD_EMUCRT = \
o/$(MODE)/tool/build/emucrt/emucrt.o \
tool/build/emucrt/emucrt.lds
o/$(MODE)/tool/build/emucrt/emucrt.lds
.PHONY: o/$(MODE)/tool/build/emucrt
o/$(MODE)/tool/build/emucrt: \