6502 assembler from within Lua.
Go to file
g012 ae256b8e2c Added image importers for VCS. 2017-10-05 00:12:28 +02:00
samples Added helpers for implementing cross bank calls using tjoppen's method of encoding the bank number into the 3 MSB. 2017-10-04 00:19:03 +02:00
vim Added optional far keyword with encapsulation for far calls of not yet declared labels. 2017-10-03 22:55:58 +02:00
.gitignore Generates a binary for the first time. 2017-09-19 15:53:10 +02:00
.travis.yml Added related sections constraint. 2017-10-02 00:40:38 +02:00
6502.lua Added helpers for implementing cross bank calls using tjoppen's method of encoding the bank number into the 3 MSB. 2017-10-04 00:19:03 +02:00
CMakeLists.txt Added image importers for VCS. 2017-10-05 00:12:28 +02:00
LICENSE Initial commit 2016-06-15 01:59:00 +02:00
README.md Added image importers for VCS. 2017-10-05 00:12:28 +02:00
embed.c Changed embed.c to generate all signed char tables. 2017-09-28 23:43:30 +02:00
l65.lua Added image importers for VCS. 2017-10-05 00:12:28 +02:00
l65cfg.lua Added CMake builder. 2017-09-27 01:33:21 +02:00
l65cfg.lua.in Added CMake builder. 2017-09-27 01:33:21 +02:00
lfs.c Fixed 64b build warnings. 2017-09-28 11:10:25 +02:00
lpeg.c Fixed warnings on clang. 2017-09-28 23:37:03 +02:00
lua.h Added CMake builder. 2017-09-27 01:33:21 +02:00
main.c Added image importers for VCS. 2017-10-05 00:12:28 +02:00
stb_image.h Added image importers for VCS. 2017-10-05 00:12:28 +02:00
vcs.l65 Added image importers for VCS. 2017-10-05 00:12:28 +02:00

README.md

l65

Build Status

l65 is a 6502 assembler, operating from within Lua and written in Lua. This means assembler mnemonics become regular Lua statements anywhere in the middle of Lua code.

Building

Use CMake to build a standalone executable. Following are basic instructions if you've never used CMake.

Windows

32b version:

mkdir build\win32
cd build\win32
cmake -G "Visual Studio 15 2017" ..\..
cd ..
cmake --build win32 --config Release

64b version:

mkdir build\win64
cd build\win64
cmake -G "Visual Studio 15 2017 Win64" ..\..
cd ..
cmake --build win64 --config Release

Linux

mkdir -p build/linux
cd build/linux
cmake ../.. -DCMAKE_BUILD_TYPE=Release
make

Force 32b build on 64b system:

mkdir -p build/linux32
cd build/linux32
cmake ../.. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=-m32
make

Vim files installation

  • copy vim/* into ~/vimfiles/
  • add au BufRead,BufNewFile *.l65 set syntax=l65 filetype=l65 to ~/.vimrc (or ~/_vimrc on Windows)

Credits

Developed by g012, using:

Not using, but integrated for end-user convenience:

Projects which inspired l65:

License

l65 is licensed under the MIT License, see LICENSE for more information.