Compare commits
2 Commits
main
..
6c6bed6c7e
| Author | SHA1 | Date | |
|---|---|---|---|
|
6c6bed6c7e
|
|||
|
a8bf8841c2
|
@@ -1,8 +1,8 @@
|
|||||||
cat: cat.o
|
cat: cat.o
|
||||||
ld -o cat cat.o
|
ld -o cat cat.o
|
||||||
|
|
||||||
cat.o: cat.nasm
|
cat.o: cat.s
|
||||||
nasm -f elf64 cat.nasm
|
nasm -g -f elf64 cat.s
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
# cat
|
# cat
|
||||||
[](https://ci.zander.im/job/asm-cat/)
|
|
||||||
|
|
||||||
Posix compliant cat written in NASM Assembler for practice. This program
|
Posix compliant cat written in NASM Assembler for practice.
|
||||||
**ONLY** works on Linux.
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
;; -*- mode: asm; -*-
|
;; -*- mode: nasm -*-
|
||||||
%define SYS_open 0x2
|
%define SYS_open 0x2
|
||||||
%define SYS_close 0x3
|
%define SYS_close 0x3
|
||||||
%define SYS_write 0x1
|
%define SYS_write 0x1
|
||||||
Reference in New Issue
Block a user