Search found 1243 matches

by pixel
Thu Mar 28, 2024 2:18 pm
Forum: Programming
Topic: Unixoid VIC
Replies: 15
Views: 581

Re: Unixoid VIC

This is fun, especially with the latest VICE monitor update (build from source): vice-montior.png (I know your eyes are just having sex.) Instead of doing waiting lists for zombies implementing signals isn't much more complicated and the signal mechanism is a lot more versatile too. This needs some ...
by pixel
Thu Mar 28, 2024 5:26 am
Forum: Emulation and Cross Development
Topic: Assembler
Replies: 36
Views: 1464

Re: Assembler

beamrider wrote: Thu Mar 28, 2024 2:41 am Out of interest and as something I've never really used. What's the benefits of using a monitor rather than just going straight to an assembler and using the VICE monitor.
It makes you a tough boy by over-complicating about everything? Something remotely ca65 compatible I'd find interesting.
by pixel
Tue Mar 26, 2024 12:20 pm
Forum: Emulation and Cross Development
Topic: Assembler
Replies: 36
Views: 1464

Re: Assembler

I would start down at the metal. What's a transistor/gate. What does an adder look like. What's an ALU, data bus, address bus, control bus. Now that bits and bytes make sense, then I'd continue with assembly.
by pixel
Tue Mar 26, 2024 2:59 am
Forum: Emulation and Cross Development
Topic: Assembler
Replies: 36
Views: 1464

Re: Assembler

Any summary of this adventure? Somebody once asked me if I could teach him to programme. I asked "Do you know how a computer works?" "Yes! You grab the mouse *grab* and then you click here and here and…" It takes Harvard experience to teach adults like that.
by pixel
Mon Mar 25, 2024 12:22 pm
Forum: Programming
Topic: Unixoid VIC
Replies: 15
Views: 581

Re: Unixoid VIC

First boot. Meaning userland C coding. :mrgreen:
tunix-firstboot.png
by pixel
Sun Mar 24, 2024 5:26 pm
Forum: Programming
Topic: Unixoid VIC
Replies: 15
Views: 581

Re: Unixoid VIC

See the thread " Printing (unsigned) 16-bit numbers in Assembly, how? ". :wink: 8) Thanks! tnuix-with-numbers.png Oh impatience... This will take assigning LFNs to devices to make pipes. And a FIFO driver for inter-process communication perhaps. But sure as hell a RAM disk because sharing...
by pixel
Sun Mar 24, 2024 4:01 pm
Forum: Programming
Topic: Unixoid VIC
Replies: 15
Views: 581

Re: Unixoid VIC

tunix-zombie.png Now for chasing zombies… how did printing decimals work again? In the operating system's choreography, a process doesn't simply terminate and vanish. Instead, it lingers due to a critical relationship with its creator: the parent process. The parent may opt to inspect the exit code...
by pixel
Sat Mar 23, 2024 4:23 am
Forum: Programming
Topic: Unixoid VIC
Replies: 15
Views: 581

Re: Unixoid VIC

That is actually the job of CLRCHN . Just the regular dumbing down before enlightenment hits. You're right. Thanks! The idea of just dropping the channels wasn't too appealing, so TUNIX closes every file with CLALL. I'm thinking maybe it's a good idea if processes get (and thus inherit) their own d...
by pixel
Fri Mar 22, 2024 10:04 am
Forum: Programming
Topic: Unixoid VIC
Replies: 15
Views: 581

Re: Unixoid VIC

And suddenly CLALL makes sense. There are no standard logical file numbers for console I/O. CLALL virtually does the necessary CHKIN/CKOUT as if there were local file numbers for keyboard and screen. That bit of explanation is missing in all docs I've seen so far.
Not a show stopper.
by pixel
Fri Mar 22, 2024 8:49 am
Forum: Programming
Topic: Unixoid VIC
Replies: 15
Views: 581

Re: Unixoid VIC

And there it is: the fork system call:

Code: Select all

    lda #31
    tax
    jsr SETLFN
    lda #2
    ldx #<cmd_fork
    ldy #>cmd_fork
    jsr SETNAM
    jsr OPEN
    …
cmd_fork: .byte "PF"
Enough for today…
by pixel
Thu Mar 21, 2024 7:46 pm
Forum: Programming
Topic: Unixoid VIC
Replies: 15
Views: 581

Re: Unixoid VIC

%p A version written in C would be nice because TDD in assembly isn't… Got a little bit tangled up with the banking but that also went well. IO23 is always there (each process has its own copy) to catch KERNAL I/O calls and the rest is in BLK1. That's enough trouble if apps can use that too. Am wond...
by pixel
Tue Mar 19, 2024 10:49 pm
Forum: Emulation and Cross Development
Topic: Using Exomizer
Replies: 13
Views: 606

Re: Using Exomizer

You're welcome. We all ended up with about the same solution. Any turbo loading planned?
by pixel
Mon Mar 18, 2024 1:11 pm
Forum: Emulation and Cross Development
Topic: Using Exomizer
Replies: 13
Views: 606

Re: Using Exomizer

OK, here's the first part with BLK5 piggy-bagging another self-extracting PRG with the rest: prg_start = $11ff prg_sysaddr = $120d .zeropage s: sl: .res 1 sh: .res 1 d: dl: .res 1 dh: .res 1 c: cl: .res 1 ch: .res 1 .code main: jmp start blk5: .incbin "blk5.bin" blk5_end: prg: .incbin &quo...
by pixel
Mon Mar 18, 2024 9:21 am
Forum: Emulation and Cross Development
Topic: Using Exomizer
Replies: 13
Views: 606

Re: Using Exomizer

*coffee*

You write a loader that's got the uncompressed BLK5 and an exomized binary with the rest in it. That thing you exomize too.
When it starts it copies BLK5 and relocates the exomized binary with the rest and launches that. You probably need to relocate the copy loop to relocate the latter. %p
by pixel
Mon Mar 18, 2024 6:52 am
Forum: Programming
Topic: Unixoid VIC
Replies: 15
Views: 581

Re: Unixoid VIC

Yeah! This should stay small. The egg-laying wool-milk-pig with power outlet nose and peeing gasoline here is the deque (doubly-linked list) on a (256 byte page) with byte pointers to previous/next elements. Multiple lists can share a page and removal/insertion ist really fast and happens at constan...