Browse Source

seed only returns size for now

master
JoYo 3 years ago
parent
commit
d0a9a38ede
  1. 8
      docker-compose.yaml
  2. 21
      seed.asm

8
docker-compose.yaml

@ -1,16 +1,16 @@
version: '3'
services:
sins_build:
image: sins_build
image: sins
build:
context: .
volumes:
- ${PWD}:/app
- ${PWD}:/app
working_dir: /app
command: yasm seed.asm -o seed
sins_run:
image: sins_build
image: sins
volumes:
- ${PWD}:/app
- ${PWD}:/app
working_dir: /app
command: python3 -m sins

21
seed.asm

@ -4,27 +4,10 @@
nop
mov rbp,rsp
nop
sub rsp,0x30
nop
mov QWORD [rbp-0x18],rdi
nop
mov DWORD [rbp-0x1c],esi
nop
mov QWORD [rbp-0x28],rdx
nop
mov rax,QWORD [rbp-0x28]
nop
mov QWORD [rbp-0x8],rax
nop
mov ecx,DWORD [rbp-0x1c]
nop
mov rdx,QWORD [rbp-0x18]
mov QWORD [rbp-0x8],rdi
nop
mov rax,QWORD [rbp-0x8]
nop
mov esi,ecx
nop
mov rdi,rdx
pop rbp
nop
call rax
ret

Loading…
Cancel
Save