Print special character in assembly bootloader -
i want print characters such ▀, ▄ , ■ in assembly bootloader. when this:
println: lodsb or al, al jz complete mov ah, 0x0e int 0x10 jmp println complete: call printnwl printnwl: mov al, 0 stosb mov ah, 0x0e mov al, 0x0d int 0x10 mov al, 0x0a int 0x10 ret msg db 'message specia character ■', 0x0 mov si, msg call println
the special characters replaces weird other characters. thank your help
thank michael petch , ped7g commenting question. tried out both of advices, , both did work.
here's method used:
- write special characters inside assembly file in plain text (not michael petch suggested)
- save file dos encoding (i use sublime text text editor)
- build nasm , characters display in bios
Comments
Post a Comment