-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reformat changelog in Markdown; Add test program (including build scr…
…ipt); Update readme (make Markdown); Rewrite and restructure project; Update optimisation flags; Depend on ctrlc, sdl2, and toml; Set window title according to image; Draw video memory; Update naming convention; Update gitignore; Never hang on trap; Run CPU on seperate thread; Rework logs;
- Loading branch information
1 parent
2ff708d
commit 7176c1f
Showing
68 changed files
with
2,536 additions
and
2,025 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
*.agb | ||
*.elf | ||
*.o | ||
*.sav | ||
vgcore.* | ||
/target | ||
/old | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Luma | ||
|
||
luma is an emulator for the AGB—Game Boy Advance platform. | ||
|
||
# Usage | ||
|
||
``` | ||
luma [configuration] | ||
``` | ||
|
||
Invoke the emulator via the `luma` command. | ||
|
||
## Configuration | ||
|
||
The emulator tries to read the configuration file at `${HOME}/.luma.toml`. If successful, the following fields are read (all must be present): | ||
|
||
`luma`: | ||
* `version`: The configuration format (currently 0) | ||
|
||
`device`: | ||
* `bootloader`: The path to the bootloader file | ||
* `image`: The path to the image file | ||
|
||
`video`: | ||
* `scale`: The scale modifier applied to the screen (1-4294967295) | ||
|
||
If a path is parsed as a terminal parameter, the configuration at that location is read instead. | ||
|
||
# Compatibility | ||
|
||
Currently, the emulator has limited support for the Arm instruction set. All of the instructions used in the provided test program are – however – implemented. | ||
|
||
The entire memory space (`0x00000000` to `0x0E00FFFF`) is available, however, no I/O-mapped addresses are currently functional. | ||
|
||
Improved support is, of course, planned. | ||
|
||
# Copyright & License | ||
|
||
Copyright 2021-2023 Gabriel Bjørnager Jensen. | ||
|
||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. | ||
|
||
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env sh | ||
|
||
echo Making object file... | ||
arm-none-eabi-as -otest.o test.s | ||
|
||
echo Making binary... | ||
arm-none-eabi-ld -Ttest.ld -otest.elf test.o | ||
|
||
echo Stripping binary... | ||
arm-none-eabi-strip --strip-debug --strip-unneeded test.elf | ||
arm-none-eabi-objcopy -Obinary test.elf test.agb | ||
|
||
echo Patching header... | ||
agbsum -psitest.agb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.