Initial commit

This commit is contained in:
Tyrel Souza 2022-11-24 15:02:42 +00:00
commit 9cd7083a05
3 changed files with 32 additions and 0 deletions

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM i686/ubuntu
RUN apt update
RUN apt install -y build-essential wget vim zsh
RUN mkdir -p /code
WORKDIR /code
RUN wget https://www.plantation-productions.com/Webster/HighLevelAsm/HLAv2.16/linux.hla.tar.gz --no-check-certificate
RUN tar -xzvf linux.hla.tar.gz
RUN mv usr/hla /usr/
RUN cp /usr/hla/hla /bin
RUN cp /usr/hla/hlaparse /bin
RUN rm -rf usr
RUN rm linux.hla.tar.gz
CMD ["/bin/zsh"]

8
code/helloworld.hla Normal file
View File

@ -0,0 +1,8 @@
program helloWorld;
#include( "stdlib.hhf" );
begin helloWorld;
stdout.put( "Hello, world", nl );
end helloWorld;

4
start.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
docker build . -t workspace
docker run --rm -it --mount=type=bind,source="$(pwd)"/code,target=/code workspace