title groc .model small .stack 100h .data eggs dw baadh milk dw f00dh bag dw d00dh .code .486 start: mov ax, [eggs] cmp ax, 0 jz noeggs mov cx, 6 jmp initbuy noeggs: mov cx, 2 initbuy: xor ax, ax buy: add ax, 1 mov edx, [milk + ax * 4] mov [bag + ax * 4], edx cmp ax, cx jne buy endbuy: mov ax, 4c00h int 21h end start
And, before anyone points out, yes. I don't know shhh about x86 assembly (contrary to, for example, the post above), but, arguably, it still looks cool and I had to pretend I'm smart








