Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 481 Bytes

01052023.md

File metadata and controls

30 lines (23 loc) · 481 Bytes
  1. My first step toward becoming a compiler expert:
section .bss
  num dq 10

section .data
  %define user 'Ben'
  %define band 'Coldplay'

  %define counting_stars 10
  stars times 10 db '*'
  ; `stars times $-counting_stars db '*'` := cannot use non-constant argument supplied to TIMES.

  %define song 'Some '
 len equ $-song

section .text
  global _start

_start:
  mov edx,counting_stars
  mov ecx,stars
  mov ebx,1
  mov eax,4
  int 0x80

  mov eax,1
  int 0x80