PL2 vCPU

From Esolang
Jump to navigation Jump to search

Overview

The PL2 vCPU is a currently in-progress modular esoteric C++ virtual CPU made by User:TeamLightning as a lower-level successor to PainLang. As of the current version the specifications are incomplete, and therefore may change at any time.

Examples

Hello World

As of commit 000bc59, with the IOCPU module, assembled using the IOCPU_opcodes.db opcode list, the below program displays Hello World when loaded at offset 0x0000.

SAI:0048  
SAI:0048
SWP:0000
IOO:0000
SWP:0000
SAI:0065
SWP:0000
IOO:0000
SWP:0000
SAI:006c
SWP:0000
IOO:0000
IOO:0000
SWP:0000
SAI:006f
SWP:0000
IOO:0000
SWP:0000
SAI:0020
SWP:0000
IOO:0000
SWP:0000
SAI:0057
SWP:0000
IOO:0000
SWP:0000
SAI:006f
SWP:0000
IOO:0000
SWP:0000
SAI:0072
SWP:0000
IOO:0000
SWP:0000
SAI:006c
SWP:0000
IOO:0000
SWP:0000
SAI:0064
SWP:0000
IOO:0000
SWP:0000
HLT:0000

Implementations

The only known functional implementation of the CPU and assembler is at the project's GitHub repo.