u/Additional_Draw_6804

▲ 4 r/osdev

PIC-4 Running

Hi i made an update for my own CPU for now its only Emulator written in C# .NET 9.0 For Windows is Emulator i deleted BIOS becuse i just don't like having BIOS in CPU.
It was maded for my School project.
I added Expantion Cards functionality and i gonna try to run Doom when i make Keyboard Expantion Card i maded first Expantion Card named: Serial Card (Serial Expantion Card.)
Just question do yall wanna it be Open-source on github?

reddit.com
u/Additional_Draw_6804 — 12 days ago
▲ 8 r/osdev

PIC-4 Running

Hi i maded first Idea and emulator of how my CPU PIC-4 Would work i don't wanna make it public and Github becuse its written in C# .NET 9.0 Emulator. and anyway this is for my School project so i don't wanna make it public.
PIC-4 Idea.txt:
PIC-4 Instruction Set.

ADD <Register>, <Value> -> 0001 : Adds Value to Register Value MAX to 15 becuse Its max 16 gonna make Overflow

MOV <Register>, <Register/Hex Value> - > 0010 : Sets Register to Register/Hex Value

SET -> 0011 : RUNS and Apply Code before this Instruction.

JMP <addr> -> 0100 : JMPS to Address in memory where it was showed if new code was executed old code is still runned but JMP is disabled for old code

STRING <String>, <Addr> -> 0101 : Creats An String in Address

VIDEO <STRING/PIXEL ADDR/ADDR>, <Video Addr> -> 0110 : Puts Pixel or String in Video Address you Want if it gonna run the same STRING/PIXEL ADDR/ADDR then its disabled until new STRING/PIXEL ADDR/ADDR Is Used

NOP -> 0111 : No Operation

LOAD <Register>, <Addr> -> 1000 : Loads Data for Register to Address

HLT -> 1001 : Stops Clock And Blocks Next Instruction Execution (Death Point)

PIC-4 Registers.

A, B, C, D, E, F, G, H, I, J, K, L, M, N, O

Examples.

Hello world:

1: MOV A, 0xFF

2: ADD A, 3

3: STRING "Hello World\n", 0x1500

4: SET

5: NOP

6: LOAD A, 0x1500

7: VIDEO 0x1500, 0x6950

8: HLT

BIOS (Emulator):

1: MOV A, 0xFF

2: MOV B, 0xFF

3: MOV C, 0xFF

4: MOV D, 0xFF

5: MOV E, 0xFF

6: MOV F, 0xFF

7: MOV G, 0xFF

8: MOV H, 0xFF

9: MOV I, 0xFF

10: MOV J, 0xFF

11: MOV K, 0xFF

12: MOV L, 0xFF

13: MOV M, 0xFF

14: MOV N, 0xFF

15: MOV O, 0xFF

16: NOP

17: SET

18: STRING "PIC-4 Emulator BIOS\n Verion 1.0\n" 0x1500

19: NOP

20: SET

21: VIDEO 0x1500, 0x6950

22: NOP

23: SET

24: JMP 1

reddit.com
u/Additional_Draw_6804 — 12 days ago
▲ 0 r/osdev

So well if someone says that this OS was fixed/written by AI Everyone says: AI Slop
But if someone don't say that it was AI they would react normaly. Like What the hell is this world.

reddit.com
u/Additional_Draw_6804 — 17 days ago