assembly
This commit is contained in:
parent
b72ed18a76
commit
a01ad9be2d
1
assembly
1
assembly
@ -1 +0,0 @@
|
||||
Subproject commit 6f2e5724071da0df10a7c2a8cfd646701cc07ab6
|
20
assembly/Dockerfile
Normal file
20
assembly/Dockerfile
Normal 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"]
|
8
assembly/code/helloworld.hla
Normal file
8
assembly/code/helloworld.hla
Normal 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
4
assembly/start.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker build . -t workspace
|
||||
docker run --rm -it --mount=type=bind,source="$(pwd)"/code,target=/code workspace
|
Loading…
Reference in New Issue
Block a user