Skip to content

phreda4/r3vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4dab43c · Dec 31, 2020
Dec 25, 2020
Dec 31, 2020
Dec 31, 2020
Sep 30, 2019
Sep 29, 2019
Sep 29, 2019
Oct 8, 2020
Dec 25, 2020
Oct 8, 2020
Sep 29, 2019
Feb 15, 2020
Dec 25, 2020
Feb 18, 2020
Feb 18, 2020
Feb 18, 2020
Feb 18, 2020
Feb 18, 2020
Jul 22, 2020
Dec 3, 2020
Dec 27, 2020
Jun 27, 2020
Aug 7, 2020
Aug 7, 2020
Jun 27, 2020
Dec 27, 2020
Jun 27, 2020
Dec 31, 2020
Dec 25, 2020
Dec 31, 2020
Dec 31, 2020
Oct 1, 2019
Oct 1, 2019
Oct 8, 2020
Aug 7, 2020
Dec 25, 2020
Dec 25, 2020
Sep 14, 2020
Sep 14, 2020
Jul 22, 2020
Feb 18, 2020
Feb 18, 2020
Jul 12, 2020
Mar 3, 2020
Jun 27, 2020

Repository files navigation

r3

r3 is a concatenative language of the forth family, more precisely it takes elements of the ColorForth, the colors that have the words internally are encoded by a prefix, in r3 this prefix is explicit.

This is the virtual machine, load main.r3, compile in bytecodes (really are dwordcodes) and interpret this code.

compilation

Windows

Change in r3.cpp comment all

//#define DEBUGWORD
//#define VIDEOWORD
//#define LINUX
//#define RPI   // Tested on a Raspberry PI 4

Compile with devcpp(5.11), is a GCC for windows, with SDL and SDL_MIXER packages.

Linux

Change in r3.cpp uncomment LINUX

//#define DEBUGWORD
//#define VIDEOWORD
#define LINUX
//#define RPI   // Tested on a Raspberry PI 4

I do this with, Xubuntu 20, with GCC, need instaled SDL and SDL_MIXER

$ make clean
$ make 
$ chmod +x ./r3lin

EMSCRIPTEN

Can compile in emscripten too. emscriptenbuild.sh is the make.

MAC

To compile the mac version:

A separate files, r3mac.cpp and r3graf.cpp.

c++  -Ofast -fpermissive   -c -o grafmac.o grafmac.cpp
c++  -Ofast -fpermissive   -c -o r3mac.o r3mac.cpp
g++ grafmac.o r3mac.o  -o r3mac -lSDL2main -lSDL2 -lSDL2_mixer

compiler suite and SDL2* installed through brew.

About

r3 virtual machine, succesor of :r4

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages