/3bc-lang

This is a machine language that has only 3 register bits for CPU, the idea is to make it so simple and intuitive that it can be easily read on punched cards.

Primary LanguageCMIT LicenseMIT

3BC Lang

version license quality covarage

this is a machine language that has only 3 register bits for CPU, the idea is to make it so simple and intuitive that it can be easily read on punched cards.

Hello World Example

Textual Programing Octal Code
mode nill 0x2
strc nill 'h'
strc nill 'e'
strc nill 'l'
strc nill 'l'
strc nill 'o'
strc nill ' '
strc nill 'w'
strc nill 'o'
strc nill 'r'
strc nill 'l'
strc nill 'd'
strc nill '!'
0o007 0o000 0o002
0o002 0o000 0o150
0o002 0o000 0o145
0o002 0o000 0o154
0o002 0o000 0o154
0o002 0o000 0o157
0o002 0o000 0o040
0o002 0o000 0o167
0o002 0o000 0o157
0o002 0o000 0o162
0o002 0o000 0o154
0o002 0o000 0o144
0o002 0o000 0o041

Ambient Roadmap

  • VM Memory auxiliary
  • VM Output characters
  • VM Memory Allocation
  • VM Input characters
  • VM Memory Allocation
  • VM Mathematic Basics
  • VM Labels
  • VM Conditional Jumps
  • Textual Interpreter to binary
  • Programming IDE
  • Arduino Framework C Transpiler

CPU Modes

although the CPU is limited only by 3 bits (8 registers in all), the main idea is to work with processing blocks as if there are multiple cpu nuclei where each one is specified in type of work.

Channels Architetures Description
0 dont use No Mode
1 2 x86 ARM RISC-V character output
3 4 5 x86 ARM character input
6 x86 ARM RISC-V main memory
7 dont use protected
8 x86 ARM RISC-V aux memory
9 x86 ARM RISC-V logical jumps
  • x86: conventional computer
  • ARM: smartphone, tv-box, raspbarry and similars
  • RISC-V: Arduino, ESP

List of early developers

avatar Rodrigo Dornelles 26 November 2020
avatar Carlos Eduardo 28 November 2020
avatar Robson Soares 23 December 2020