Skip to content

Commit 4da3e1d

Browse files
committed
build.sh
1 parent bf94fab commit 4da3e1d

File tree

6 files changed

+19
-129
lines changed

6 files changed

+19
-129
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
.vscode
22
*.exe
3-
*\build.bat
4-
*\build.sh

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This is a **modified** version of the Casio emulator developed by [qiufuyu](https://github.com/qiufuyu123/CasioEmuX) and contains a nX/U8 disassembler written in lua and one written in cpp (their output formats are different).
1+
This repo contains a **modified** version of the Casio emulator developed by [qiufuyu](https://github.com/qiufuyu123/CasioEmuX) and two nX/U8 disassemblers written in lua and written in cpp respectively (their output formats are different).
22

33
Files are modified so that they can work on windows.
44

emulator/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@
33
An emulator and disassembler for the CASIO calculator series using the nX-U8/100 core ported to windows.
44
With debuggers.
55

6-
building: use msys2 mingw64 env
6+
## Building
7+
8+
Download MSYS2. Run build.sh in MSYS2 MINGW64 environment.
9+
10+
Only supports x64 architecture for now.
711

812
## Options
913

1014
#### mandatory
1115

1216
`model=<directory>` model directory, which should contain interface.png, model.lua, rom.bin(you can find it elsewhere) and _disas.txt(use disas-cpp on rom.bin to obtain this file)
1317

14-
#### optional:
18+
#### optional
1519

1620
`script=<lua script path>` the lua script that runs on startup
1721

emulator/build.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
g++ -Wall -pedantic -std=c++14 -O2 \
2+
-I ./libs/SDL2-2.26.4/x86_64-w64-mingw32/include/SDL2 \
3+
-I ./libs/SDL2_image-2.6.3/x86_64-w64-mingw32/include/SDL2 \
4+
-I ./libs/lua-5.3.6/include \
5+
-I ./libs/readline-8/include \
6+
./src/casioemu.cpp ./src/Emulator.cpp ./src/Logger.cpp ./src/Chipset/CPU.cpp ./src/Chipset/CPUPushPop.cpp ./src/Chipset/MMURegion.cpp ./src/Chipset/CPUControl.cpp ./src/Chipset/CPUArithmetic.cpp ./src/Chipset/CPULoadStore.cpp ./src/Chipset/Chipset.cpp ./src/Chipset/MMU.cpp ./src/Chipset/InterruptSource.cpp ./src/Peripheral/BatteryBackedRAM.cpp ./src/Peripheral/Peripheral.cpp ./src/Peripheral/Keyboard.cpp ./src/Peripheral/Screen.cpp ./src/Peripheral/Timer.cpp ./src/Peripheral/StandbyControl.cpp ./src/Peripheral/ROMWindow.cpp ./src/Peripheral/Miscellaneous.cpp ./src/Gui/CodeViewer.cpp ./src/Gui/ui.cpp ./src/Data/ModelInfo.cpp ./src/Gui/imgui/imgui_impl_sdl2.cpp ./src/Gui/imgui/imgui_impl_sdlrenderer2.cpp ./src/Gui/imgui/imgui.cpp ./src/Gui/imgui/imgui_widgets.cpp ./src/Gui/imgui/imgui_tables.cpp ./src/Gui/imgui/imgui_draw.cpp -o ./casioemu.exe \
7+
-L"./libs/lua-5.3.6" \
8+
-L"./libs/SDL2_image-2.6.3/x86_64-w64-mingw32/lib" \
9+
-L"./libs/SDL2-2.26.4/x86_64-w64-mingw32/lib" \
10+
-L"./libs/readline-8" \
11+
-lmingw32 -lSDL2main -lSDL2 -lSDL2_image -llua53 -lreadline -lhistory
12+

emulator/libs/wineditline-2.206/include/editline/readline.h

Lines changed: 0 additions & 124 deletions
This file was deleted.
Binary file not shown.

0 commit comments

Comments
 (0)