Earlier quoted context omitted.
Is assembly not common knowledge anymore?
In the parents defense 'assembly' isn't one thing. Every assembler has a different syntax, as does every chip family. The parent might be a master of 6502 ASM. And as that XKCD comic says. Everyone has to learn even the most obvious thing for the first time at some point.
Paint16b: A 16 byte paint program written in 12 lines
11–20 of 70 posts
Re: Paint16b: A 16 byte paint program written in 12 lines
#12Be helpful if the page mentioned what language the program was written in.
Re: Paint16b: A 16 byte paint program written in 12 lines
#13Earlier quoted context omitted.
Is assembly not common knowledge anymore?
In the parents defense 'assembly' isn't one thing. Every assembler has a different syntax, as does every chip family. The parent might be a master of 6502 ASM. And as that XKCD comic says. Everyone has to learn even the most obvious thing for the first time at some point.
Re: Paint16b: A 16 byte paint program written in 12 lines
#14> assume ah=0; assume bx=0 Hmm. So the second time this program is run, it will fail?
Edit: I take that back. According to [1]:
.COM-format executables begin running with the following register values:
AL = 00h if first FCB has valid drive letter, FFh if not
AH = 00h if second FCB has valid drive letter, FFh if not
[0] https://thestarman.pcministry.com/asm/debug/debug.htm#INITRe: Paint16b: A 16 byte paint program written in 12 lines
#15Earlier quoted context omitted.
Is assembly not common knowledge anymore?
In the parents defense 'assembly' isn't one thing. Every assembler has a different syntax, as does every chip family. The parent might be a master of 6502 ASM. And as that XKCD comic says. Everyone has to learn even the most obvious thing for the first time at some point.
Registers might have different names depending on the platform, actual command names may vary, but I would be surprised to see non-obscure platforms for which the pattern above is not valid.
Re: Paint16b: A 16 byte paint program written in 12 lines
#16Re: Paint16b: A 16 byte paint program written in 12 lines
#17can I run this on linux? (wine?)
Re: Paint16b: A 16 byte paint program written in 12 lines
#18Earlier quoted context omitted.
In the parents defense 'assembly' isn't one thing. Every assembler has a different syntax, as does every chip family. The parent might be a master of 6502 ASM. And as that XKCD comic says. Everyone has to learn even the most obvious thing for the first time at some point.
https://xkcd.com/1053/
Re: Paint16b: A 16 byte paint program written in 12 lines
#19Be helpful if the page mentioned what language the program was written in.
16 bit x86 assembly. It will run on DOS with a VESA framebuffer and mouse driver. Dosbox with it's default config should work fine.
Re: Paint16b: A 16 byte paint program written in 12 lines
#20can I run this on linux? (wine?)