This commit is contained in:
Tyrel Souza 2023-01-26 21:07:56 +00:00
parent b72ed18a76
commit a01ad9be2d
4 changed files with 32 additions and 1 deletions

@ -1 +0,0 @@
Subproject commit 6f2e5724071da0df10a7c2a8cfd646701cc07ab6

20
assembly/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/hlacmp /bin
RUN rm -rf usr
RUN rm linux.hla.tar.gz
CMD ["/bin/zsh"]

View File

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

4
assembly/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