-
-
Save chrisdickinson/4695f79b3d719e29b65d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var nets = require('nets') | |
var multiline = require('multiline') | |
var compileServer = 'http://localhost:8080' | |
var cProgram = multiline(function (){/* | |
int main(void) { | |
*(unsigned int*)0x04000000 = 0x0403; | |
((unsigned short*)0x06000000)[120 + 80 * 240] = 0x001F; | |
((unsigned short*)0x06000000)[136 + 80 * 240] = 0x03E0; | |
((unsigned short*)0x06000000)[120 + 96 * 240] = 0x7C00; | |
while(1); | |
return 0; | |
} | |
*/}) | |
nets({url: compileServer, method: "POST", body: cProgram}, function(err, resp, body) { | |
console.log(err, resp, body) | |
}) |
This file contains hidden or 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
FROM ubuntu:14.04 | |
RUN apt-get update && apt-get -y install wget build-essential | |
RUN apt-get install -y tree | |
WORKDIR /gba | |
RUN wget http://iweb.dl.sourceforge.net/project/devkitpro/devkitARM/previous/devkitARM_r42-x86_64-linux.tar.bz2 | |
RUN wget http://iweb.dl.sourceforge.net/project/devkitpro/libgba/libgba-20150106.tar.bz2 | |
RUN wget http://iweb.dl.sourceforge.net/project/devkitpro/maxmod/maxmod-gba-1.0.9.tar.bz2 | |
RUN wget http://hivelocity.dl.sourceforge.net/project/devkitpro/libfat/libfat-gba-1.0.13.tar.bz2 | |
RUN wget http://softlayer-dal.dl.sourceforge.net/project/devkitpro/examples/gba/gba%20examples%2020090222/gba-examples-20090222.tar.bz2 | |
RUN mkdir -p gba/devkitpro/devkitARM | |
RUN mkdir -p gba/devkitpro/examples | |
RUN mkdir -p gba/devkitpro/libgba | |
RUN tar -xvjf devkitARM_r42-x86_64-linux.tar.bz2 -C gba/devkitpro | |
RUN tar -xvjf libgba-20150106.tar.bz2 -C gba/devkitpro/libgba | |
RUN tar -xvjf maxmod-gba-1.0.9.tar.bz2 -C gba/devkitpro/libgba | |
RUN tar -xvjf libfat-gba-1.0.13.tar.bz2 -C gba/devkitpro/libgba | |
RUN tar -xvjf gba-examples-20090222.tar.bz2 -C gba/devkitpro/examples | |
ENV DEVKITPRO /gba/gba/devkitpro | |
ENV DEVKITARM /gba/gba/devkitpro/devkitARM | |
RUN cd gba/devkitpro/examples/ && make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment