2017-09-15 22:11:22 +00:00
# l65
2017-09-28 21:37:03 +00:00
[![Build Status ](https://travis-ci.org/g012/l65.svg?branch=master )](https://travis-ci.org/g012/l65)
2017-09-15 22:11:22 +00:00
2017-09-28 20:55:31 +00:00
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.
2017-09-28 13:27:49 +00:00
## 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" ..\..
2017-09-28 21:37:03 +00:00
cd ..
2017-09-28 13:27:49 +00:00
cmake --build win32 --config Release
```
64b version:
```
mkdir build\win64
cd build\win64
cmake -G "Visual Studio 15 2017 Win64" ..\..
2017-09-28 21:37:03 +00:00
cd ..
2017-09-28 13:27:49 +00:00
cmake --build win64 --config Release
```
### Linux
```
2017-09-28 21:37:03 +00:00
mkdir -p build/linux
2017-09-28 13:27:49 +00:00
cd build/linux
cmake ../.. -DCMAKE_BUILD_TYPE=Release
make
```
Force 32b build on 64b system:
```
2017-09-28 21:37:03 +00:00
mkdir -p build/linux32
2017-09-28 13:27:49 +00:00
cd build/linux32
cmake ../.. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=-m32
make
```
## Vim files installation
2017-09-15 22:11:22 +00:00
* copy vim/* into ~/vimfiles/
2017-09-28 13:27:49 +00:00
* add `au BufRead,BufNewFile *.l65 set syntax=l65 filetype=l65` to ~/.vimrc (or ~/_vimrc on Windows)
## Credits
Developed by g012, using:
2017-10-04 22:12:28 +00:00
* [Lua 5.3.4 ](https://www.lua.org )
2017-09-28 13:27:49 +00:00
* [LuaMinify ](https://github.com/stravant/LuaMinify )
* Lua syntax file shipping with [vim ](http://www.vim.org )
* Lua indent file from [vim-lua ](https://github.com/tbastos/vim-lua )
2017-10-04 22:12:28 +00:00
* [stb_image ](https://github.com/nothings/stb )
2017-09-28 13:27:49 +00:00
Not using, but integrated for end-user convenience:
* [LuaFileSystem ](https://keplerproject.github.io/luafilesystem )
* [LPeg ](http://www.inf.puc-rio.br/~roberto/lpeg )
Projects which inspired l65:
* [nimble65 ](https://bitbucket.org/kylearan/nimble65 )
* [k65 ](http://devkk.net/wiki/index.php?title=K65 )
## License
l65 is licensed under the MIT License, see LICENSE for more information.