Skip to content
Open

Forth #2947

Show file tree
Hide file tree
Changes from 21 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ jobs:
- name: Install Host toolchain
run: |
apt-get update
apt-get install --assume-yes build-essential ruby-full
apt-get install --assume-yes build-essential gcc-multilib ruby-full

- name: Prebuild
run: |
Expand Down Expand Up @@ -275,7 +275,7 @@ jobs:
- name: Install Host toolchain
run: |
apt-get update
apt-get install --assume-yes build-essential ruby-full
apt-get install --assume-yes build-essential gcc-multilib ruby-full

- name: Prebuild
run: |
Expand Down Expand Up @@ -343,7 +343,7 @@ jobs:
- name: Install Host toolchain
run: |
apt-get update
apt-get install --assume-yes build-essential ruby-full
apt-get install --assume-yes build-essential gcc-multilib ruby-full

- name: Build
run: |
Expand Down Expand Up @@ -372,7 +372,7 @@ jobs:
- name: Install Host toolchain
run: |
apt-get update
apt-get install --assume-yes build-essential ruby-full
apt-get install --assume-yes build-essential gcc-multilib ruby-full

- name: Build
run: |
Expand Down Expand Up @@ -404,7 +404,7 @@ jobs:
run: |
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_STATIC=ON -DBUILD_SDLGPU=On -DBUILD_WITH_ALL=ON -DCMAKE_POLICY_VERSION_MINIMUM=3.5 ..
cmake --build . --parallel
cmake --build . --parallel 3

- name: Deploy
uses: actions/upload-artifact@v6
Expand All @@ -418,7 +418,7 @@ jobs:
run: |
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SDLGPU=On -DBUILD_PRO=On -DBUILD_WITH_ALL=ON -DCMAKE_POLICY_VERSION_MINIMUM=3.5 ..
cmake --build . --parallel
cmake --build . --parallel 3

# === MacOS 15 / x86_64 ===
macos:
Expand Down Expand Up @@ -477,6 +477,9 @@ jobs:
distribution: 'temurin'
cache: gradle

- name: Install 32-bit build tools
run: sudo apt-get update && sudo apt-get install -y gcc-multilib

- name: Build
run: |
cd build/android
Expand Down Expand Up @@ -509,6 +512,9 @@ jobs:
with:
ruby-version: 2.6

- name: Install 32-bit build tools
run: sudo apt-get update && sudo apt-get install -y gcc-multilib

- name: Build lua
run: |
cd build
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/webapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
submodules: recursive
fetch-depth: 0

- name: Install 32-bit build tools
run: sudo apt-get update && sudo apt-get install -y gcc-multilib

- name: Build
run: |
cd build
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,6 @@
[submodule "vendor/lpeg"]
path = vendor/lpeg
url = https://github.com/roberto-ieru/LPeg.git
[submodule "vendor/pforth"]
path = vendor/pforth
url = https://github.com/philburk/pforth.git
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ include(cmake/squirrel.cmake)
include(cmake/pocketpy.cmake)
include(cmake/quickjs.cmake)
include(cmake/janet.cmake)
include(cmake/forth.cmake)

include(cmake/core.cmake)
include(cmake/wave.cmake)
Expand Down
2 changes: 2 additions & 0 deletions assets.bat
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ build\bin\prj2cart demos\schemedemo.scm build\schemedemo.tic
build\bin\prj2cart demos\sfx.lua build\sfx.tic
build\bin\prj2cart demos\squirreldemo.nut build\squirreldemo.tic
build\bin\prj2cart demos\tetris.lua build\tetris.tic
build\bin\prj2cart demos\forthdemo.fth build\forthdemo.tic
build\bin\prj2cart demos\wrendemo.wren build\wrendemo.tic
build\bin\prj2cart demos\yuedemo.yue build\yuedemo.tic

Expand Down Expand Up @@ -59,6 +60,7 @@ build\bin\bin2txt build\schemedemo.tic build\assets\schemedemo.tic.dat -z
build\bin\bin2txt build\sfx.tic build\assets\sfx.tic.dat -z
build\bin\bin2txt build\squirreldemo.tic build\assets\squirreldemo.tic.dat -z
build\bin\bin2txt build\tetris.tic build\assets\tetris.tic.dat -z
build\bin\bin2txt build\forthdemo.tic build\assets\forthdemo.tic.dat -z
build\bin\bin2txt build\wrendemo.tic build\assets\wrendemo.tic.dat -z
build\bin\bin2txt build\janetmark.tic build\assets\janetmark.tic.dat -z
Comment thread
luginf marked this conversation as resolved.
build\bin\bin2txt build\jsmark.tic build\assets\jsmark.tic.dat -z
Expand Down
1 change: 1 addition & 0 deletions build/assets/forthdemo.tic.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x78, 0xda, 0xed, 0x92, 0xc1, 0x4e, 0xdb, 0x40, 0x10, 0x86, 0x37, 0xd0, 0x1e, 0xea, 0x03, 0x12, 0x6f, 0xf0, 0x87, 0x53, 0x2b, 0x0a, 0x8a, 0x43, 0x40, 0xd4, 0x95, 0xaa, 0x26, 0x34, 0x11, 0x96, 0xd2, 0x24, 0x4a, 0x2c, 0x4e, 0x5c, 0x82, 0x59, 0xb0, 0x55, 0x13, 0x47, 0xb6, 0xa1, 0xc9, 0x1b, 0xf8, 0xc0, 0x43, 0xf4, 0x58, 0x59, 0x7e, 0x88, 0x3d, 0x57, 0x2b, 0x9e, 0x24, 0xf2, 0x33, 0x30, 0xbb, 0x09, 0x85, 0x20, 0x44, 0x0f, 0x1c, 0x7a, 0x61, 0xc6, 0xab, 0xdd, 0xd9, 0x6f, 0xfe, 0x9d, 0xb5, 0xc7, 0xeb, 0x8c, 0xb1, 0xd2, 0xaf, 0x15, 0xf6, 0x2f, 0xbb, 0x91, 0x64, 0x69, 0x9a, 0xe6, 0x59, 0x96, 0xe5, 0x6a, 0xa6, 0x30, 0x97, 0xe2, 0xef, 0x90, 0x72, 0x56, 0xa4, 0xa9, 0x2c, 0xb2, 0x4c, 0x14, 0xe9, 0x6f, 0x51, 0xc8, 0x5c, 0x48, 0x91, 0x0b, 0x71, 0x37, 0x9e, 0xd6, 0xcb, 0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 0x19, 0xc6, 0x51, 0xbd, 0x6f, 0xd7, 0x1b, 0xed, 0x26, 0xc6, 0x13, 0x55, 0x9a, 0xf8, 0x38, 0x52, 0xb5, 0x27, 0x0f, 0xc8, 0x74, 0x89, 0x4c, 0x0d, 0xc3, 0x42, 0xa3, 0xdb, 0x75, 0x0c, 0xe0, 0xd3, 0x9e, 0xd2, 0x95, 0x81, 0x6a, 0x4d, 0xa5, 0x95, 0x8d, 0xcf, 0x0a, 0x3a, 0xf6, 0x01, 0xb1, 0x0a, 0x1a, 0x4e, 0x07, 0x76, 0x0b, 0x8a, 0x7c, 0x85, 0xb9, 0xa5, 0x33, 0xe0, 0x1c, 0x36, 0x3b, 0x44, 0xcd, 0x47, 0x74, 0x73, 0x89, 0x56, 0xef, 0xe9, 0x64, 0xa1, 0x9d, 0xdc, 0xd3, 0x9d, 0x47, 0x74, 0x73, 0x89, 0x9a, 0x3b, 0x38, 0x68, 0x0f, 0x74, 0x09, 0x8d, 0xe7, 0xe7, 0xd7, 0x48, 0x55, 0x21, 0xaf, 0x92, 0x0f, 0x7a, 0x7d, 0xc2, 0x83, 0x0d, 0x1c, 0xf2, 0x20, 0x08, 0xd1, 0x52, 0x5f, 0xa2, 0xbc, 0x81, 0xfd, 0x9a, 0x7a, 0xcc, 0x5d, 0xb4, 0xea, 0xed, 0x41, 0x93, 0xe4, 0xf3, 0xb9, 0xd7, 0xb7, 0x3b, 0x0e, 0xbe, 0xf5, 0xbb, 0x3d, 0xf5, 0x76, 0xb7, 0xd4, 0x68, 0x44, 0x96,
1 change: 1 addition & 0 deletions build/baremetalpi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ CFLAGS += -I "$(NEWLIBDIR)/include" -I $(STDDEF_INCPATH) -I $(CIRCLESTDLIB)/incl
LIBS := \
$(TIC80LIB)/libtic80studio.a \
$(TIC80LIB)/libtic80core.a \
$(TIC80LIB)/libforth.a \
$(TIC80LIB)/libgiflib.a \
$(TIC80LIB)/liblpeg.a \
$(TIC80LIB)/libluaapi.a \
Expand Down
4 changes: 4 additions & 0 deletions cmake/core.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ if(BUILD_STATIC)
target_link_libraries(tic80core PRIVATE wasm)
endif()

if(BUILD_WITH_FORTH)
target_link_libraries(tic80core PRIVATE forth)
endif()

target_link_libraries(tic80core PRIVATE runtime)

endif()
Expand Down
Loading
Loading