Skip to content

Not working with blinkenlights. #36

Open
@bret-walda

Description

running it with blinkenlights -rt sectorlisp.bin gives this:

blinkenlights -rt sectorlisp.bin
assertion failed
blink/blinkenlights.c:2351:3746 assertion failed: errno == EINTR (ENOENT)
PC 7cd3 mov %ax,%bp 89 c5 b4 0e cd 10 3c 0d
AX 0000000000000000 CX 0000000000008000 DX 0000000000000e0a BX 0000000000000002
SP 0000000000007ffa BP 0000000000000000 SI 000000000000ffff DI 0000000000008000
R8 0000000000000000 R9 0000000000000000 R10 0000000000000000 R11 0000000000000000
R12 0000000000000000 R13 0000000000000000 R14 0000000000000000 R15 0000000000000000
FS 0000000000000000 GS 0000000000000000 OPS 34 FLG ..Z...
sectorlisp.bin
000000007c00 0000000000d3 GetChar+0x4
blink backtrace
58f90c2f7192 AssertFailed+91
58f90c2f6016 ReadAnsi+631
58f90c2f7cda OnKeyboardServiceReadKeyPress.part.0+298
58f90c2f88fc OnCallBios+2985
58f90c2f4b74 OnHalt+58
58f90c2f6639 Exec+433
58f90c2f6c0d VirtualMachine+406
58f90c2ed29b main+1339
7cb793f6ee08
7cb793f6eecc __libc_start_main+140
58f90c2ed505 _start+37
instructions_cached = 42
instructions_decoded = 34
jit_callocs = 130
jit_frees = 1
redraw_latency_us = 37
redraw_compressed_bytes = 5
redraw_uncompressed_bytes = 3
instructions_cached = 42
instructions_decoded = 34
jit_callocs = 130
jit_frees = 1
redraw_latency_us = 37
redraw_compressed_bytes = 5
redraw_uncompressed_bytes = 3
zsh: IOT instruction (core dumped) blinkenlights -rt sectorlisp.bin

and if you run it simple without the -rt flags it runs but doesn't show the window where you write lisp code.
the make all results in this:

make all
cc -std=gnu89 -w -O -c -o lisp.o lisp.c
cc -std=gnu89 -w -O -c -o bestline.o bestline.c
cc lisp.o bestline.o -o lisp
as -g -o sectorlisp.o sectorlisp.S
ld -T sectorlisp.lds -o sectorlisp.bin.dbg sectorlisp.o
objcopy -S -O binary sectorlisp.bin.dbg sectorlisp.bin

i haven't tried it with qemu but personally i would like to use blinkenlights for this.
cc --version = 14.2.1 20240910
as --version = 2.43.1

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions