Live data from Hacker News

Building a Tetris Clone in X86 Assembly, Pt. Ⅰ: Hello, World

cmcenroe.me

11–14 of 14 posts

Re: Building a Tetris Clone in X86 Assembly, Pt. Ⅰ: Hello, World

#11

Is anybody able to get the repo running? 'make qemu' simply shows a blank screen and exits. But the repo seems much farther along than the blog post.

The build defaults to debug, so `make qemu` also starts QEMU waiting for a debugger to attach. `make qemu BUILD=release` won't.

Re: Building a Tetris Clone in X86 Assembly, Pt. Ⅰ: Hello, World

#12

Is anybody able to get the repo running? 'make qemu' simply shows a blank screen and exits. But the repo seems much farther along than the blog post.

The build defaults to debug, so `make qemu` also starts QEMU waiting for a debugger to attach. `make qemu BUILD=release` won't.

Thanks!

Re: Building a Tetris Clone in X86 Assembly, Pt. Ⅰ: Hello, World

#13
post #2

there's no comment section there so i'd figure i'd ask here: what is that font that it outputs? is that part of BIOS or something? or part of boot loader or PXE server? i assumed asm was the lowest level, is there some builtin font by default that can't be changed or something?

Its part of the hardware (emulated by qemu). A VGA card (or any other text mode capable video adapter) will use either a portion of ROM or some part of video memory to hold the font from where its accessed simultaneously to the beam drawing the CRT screen. (Hercules, CGA, EGA, VGA all did this).

In contrast to this, many Unix workstations never implemented such a thing and went directly to graphics framebuffers (SUN cgX framebuffers for the ... Sbus??). For that, of course you have to implement the font rendering in "bios" , or in the case of the sun machine in the OpenFirmware. Slowly.)

Re: Building a Tetris Clone in X86 Assembly, Pt. Ⅰ: Hello, World

#14
post #2

there's no comment section there so i'd figure i'd ask here: what is that font that it outputs? is that part of BIOS or something? or part of boot loader or PXE server? i assumed asm was the lowest level, is there some builtin font by default that can't be changed or something?

It is indeed the default BIOS font. You usually get it when switching to a TTY on Linux, as well.

But of course nowadays most distributions use KMS and put the consoles in a graphics mode on which the virtual console is emulated.
Post reply on HN