Commit 3c026519 authored by Jegeva's avatar Jegeva

Edit events/ga/14.md

parent f8b61288
Pipeline #47259762 passed with stages
in 1 minute and 17 seconds
......@@ -14,4 +14,74 @@ image: "ga.png"
aliases: [/ga]
---
~~~~
SECTION .data ; data section
msg: db "GENRALSMBY ",11 ; the string to print, 10=cr
len: equ $-msg ; "$" means "here"
; len is a value, not an address
SECTION .text ; code section
global _start ; make label available to linker
_start: ; standard gcc entry point
mov eax,4 ;
mov ecx,msg ;
mov edx,3 ;
mov ebx,1 ; write sysout command to int 80 hex
int 0x80 ; interrupt 80 hex, call kernel
mov eax,4 ;
mov esi,1 ;
add ecx,esi ;
mov edx, 1
int 0x80
mov eax,4 ;
mov esi,2 ;
add ecx,esi ;
mov edx, 3
int 0x80
mov eax,4 ;
mov esi,7 ;
add ecx,esi ;
mov edx, 1
int 0x80
mov eax,4 ;
mov esi,6 ;
sub ecx,esi ;
mov edx, 1
int 0x80
mov eax,4 ;
mov esi,2 ;
add ecx,esi ;
mov edx, 1
int 0x80
mov eax,4 ;
int 0x80
mov eax,4 ;
mov esi,5 ;
sub ecx,esi ;
mov edx, 1
int 0x80
mov eax,4 ;
mov esi,6 ;
add ecx,esi ;
mov edx, 1
int 0x80
mov eax,4 ;
mov esi,1 ;
add ecx,esi ;
mov edx, 1
int 0x80
mov eax,4 ;
mov esi,3 ;
sub ecx,esi ;
mov edx, 1
int 0x80
mov eax,4 ;
mov esi,4 ;
add ecx,esi ;
mov edx, 1
int 0x80
~~~~
General assembly 14
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment