AnAn
AnAn

Reputation: 25

Can unicode characters be printed in emu8086?

I'm creating a "picture" of the aces from a deck of cards by using background colors and symbols to represent the suits. I've managed to print the "A" in the upper left corner of the card, but I'm stumped on how to print an inverted "A" (∀) for the lower right corner. Is this possible to do in emu8086? I'm a somewhat beginner in assembly and 8086. I've seen an answer to a similar question here regarding printing unicode characters, but I didn't understand what they meant by render or mapping the unicode glyph to character table indexes. Or if this isn't possible, is there a way to make printed characters look inverted in emu8086? As I also need to invert the 4 suit symbols.

Upvotes: 1

Views: 617

Answers (1)

Martin Rosenau
Martin Rosenau

Reputation: 18503

CPU emulators like emu8086 typically do not only emulate a CPU (a CPU does not have a screen!) but also some hardware components.

I think that 8086 emulators emulate some 1980s or 1990s graphics adapter.

That graphics adapters were able to display a "fixed" set of characters (such as code page 437).

More advanced adapters (such as EGA or VGA cards) also had the ability to exchange the 256 characters of the default set by 256 user-defined characters - but only 256.

The third thing such adapters could do (with exception of text-only adapters) was displaying graphics (such as 320x200, 640x200, 640x350 or 640x480 pixels). In this case you might directly draw an arrow instead of using an "A" for "arrow up".

By the way: Code page 437 had four arrows (for four directions) you could use instead of the "A".

Upvotes: 4

Related Questions