forth

A WIP implementation of Forth targeting UEFI x86-64.
git clone git://git.christianermann.dev/forth
Log | Files | Refs

Dockerfile (531B)


      1 FROM debian:stable-slim
      2 
      3 RUN apt-get update && apt-get -y upgrade && \
      4     apt-get --no-install-recommends -y install \
      5         qemu-system-x86 \
      6         ovmf \
      7         fasm \
      8         mtools
      9 
     10 COPY forth.asm /
     11 COPY efi.asm /
     12 COPY base.forth /
     13 COPY efi.forth /
     14 COPY run.sh /
     15 
     16 RUN fasm forth.asm BOOTX64.EFI
     17 
     18 RUN dd if=/dev/zero of=boot.img bs=1M count=512 && \
     19     mformat -i boot.img :: && \
     20     mmd -i boot.img ::/EFI && \
     21     mmd -i boot.img ::/EFI/BOOT && \
     22     mcopy -i boot.img BOOTX64.EFI ::/EFI/BOOT
     23 
     24 ENTRYPOINT ["/run.sh"]
     25