# screen sig pixel-on-real-screen x: int, y: int, color: int sig draw-code-point-on-real-screen c: code-point, x: int, y: int, color: int, background-color: int -> _/eax: int sig overlay-code-point-on-real-screen c: code-point, x: int, y: int, color: int, background-color: int -> _/eax: int sig draw-code-point-on-screen-array screen-data: (addr array byte), c: code-point, x: int, y: int, color: int, background-color: int, screen-width: int, screen-height: int -> _/eax: int sig wide-code-point? c: code-point -> _/eax: boolean sig combining-code-point? c: code-point -> _/eax: boolean sig cursor-position-on-real-screen -> _/eax: int, _/ecx: int sig set-cursor-position-on-real-screen x: int, y: int sig draw-cursor-on-real-screen c: code-point sig color-rgb color: int -> _/ecx: int, _/edx: int, _/ebx: int # timer sig timer-counter -> _/eax: int # keyboard sig read-key kbd: (addr keyboard) -> _/eax: byte # disk sig read-ata-disk disk: (addr disk), lba: int, n: int, out: (addr stream byte) sig write-ata-disk disk: (addr disk), lba: int, n: int, out: (addr stream byte) # mouse sig read-mouse-event -> _/eax: int, _/ecx: int # tests sig count-test-failure sig num-test-failures -> _/eax: int sig running-tests? -> _/eax: boolean sig string-equal? s: (addr array byte), benchmark: (addr array byte) -> _/eax: boolean sig string-starts-with? s: (addr array byte), benchmark: (addr array byte) -> _/eax: boolean sig check-strings-equal s: (addr array byte), expected: (addr array byte), msg: (addr array byte) # debugging sig check-stack sig show-stack-state sig debug-print x: (addr array byte), fg: int, bg: int sig debug-print? -> _/eax: boolean sig turn-on-debug-print sig turn-off-debug-print sig abort e: (addr array byte) sig dump-call-stack sig heap-bound -> _/eax: int sig count-event sig count-of-events -> _/eax: int # streams sig clear-stream f: (addr stream _) sig rewind-stream f: (addr stream _) sig stream-data-equal? f: (addr stream byte), s: (addr array byte) -> _/eax: boolean sig streams-data-equal? a: (addr stream byte), b: (addr stream byte) -> _/eax: boolean sig check-stream-equal f: (addr stream byte), s: (addr array byte), msg: (addr array byte) sig check-streams-data-equal s: (addr stream _), expected: (addr stream _), msg: (addr array byte) sig next-stream-line-equal? f: (addr stream byte), s: (addr array byte) -> _/eax: boolean sig check-next-stream-line-equal f: (addr stream byte), s: (addr array byte), msg: (addr array byte) sig write f: (addr stream byte), s: (addr array byte) sig try-write f: (addr stream byte), s: (addr array byte) -> _/eax: boolean # probably a bad idea; I definitely want to discourage its use for streams of non-bytes sig stream-size f: (addr stream byte) -> _/eax: int sig space-remaining-in-stream f: (addr stream byte) -> _/eax: int sig write-stream f: (addr stream byte), s: (addr stream byte) sig write-stream-immutable f: (addr stream byte), s: (addr stream byte) sig read-byte s: (addr stream byte) -> _/eax: byte sig peek-byte s: (addr stream byte) -> _/eax: byte sig append-byte f: (addr stream byte), n: int # really just a byte, but I want to pass in literal numbers sig undo-append-byte f: (addr stream byte) # take most recent append back out #sig to-hex-char in/eax: int -> out/eax: int sig append-byte-hex f: (addr stream byte), n: int # really just a byte, but I want to pass in literal numbers sig write-int32-hex f: (addr stream byte), n: int sig write-int32-hex-bits f: (addr stream byte), n: int, bits: int sig hex-int? in: (addr slice) -> _/eax: boolean sig parse-hex-int in: (addr array byte) -> _/eax: int sig parse-hex-int-from-slice in: (addr slice) -> _/eax: int #sig parse-hex-int-helper start: (addr byte), end: (addr byte) -> _/eax: int sig hex-digit? c: byte -> _/eax: boolean #s