Re:Linux Assembly How To: “Hello, World”
by jgalt212 on Wednesday August 12, 2015 @08:19PM
(#10051605)
I find these assembly demos that rely largely upon system calls lacking. I know much stuff cannot be done without system calls, but there's got to be a better "Hello, World" for assembly.
[ Parent
| on HN ]
Re:Linux Assembly How To: “Hello, World”
by sigjuice on Wednesday August 12, 2015 @08:25PM
(#10051627)
What would a "better" "Hello, World" for assembly look like?
Re:Linux Assembly How To: “Hello, World”
by bobbo_ on Wednesday August 12, 2015 @08:36PM
(#10051668)
Not necessarily "better", but lower level and without the use of syscalls: on bare-metal x86 protected mode, writing characters to "video memory" (from 0xB8000, normally).
Re:Linux Assembly How To: “Hello, World”
by 2ton_jeff on Wednesday August 12, 2015 @08:45PM
(#10051693)
IMO, bootloader/video memory is quite a distance from the traditional model of what "Hello World" is meant to be about, no? If anyone's interested, there are lots of very simple bootloader Hello World goods around: