News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Extended ASCII Codes

Started by remus2k, January 05, 2011, 09:58:39 PM

Previous topic - Next topic

remus2k

Hi

I need for my Project a Spezial Char "219" in hex
http://www.tcp-ip-info.de/tcp_ip_und_internet/ascii.htm

Now have i change it Decimal to Hex 219 ==0DBh
And it draw it wrong i have it as "Ü"

I use it for DrawText


clive

Quote from: remus2k
I need for my Project a Spezial Char "219" in hex
http://www.tcp-ip-info.de/tcp_ip_und_internet/ascii.htm

It's 219 DECIMAL. Perhaps you need a different FONT.
It could be a random act of randomness. Those happen a lot as well.

dedndave

"Terminal" is one of the fonts that uses that character mapping (like DOS console)
it is one of the fonts that uses the OEM_CHARSET

http://www.masm32.com/board/index.php?topic=15747.msg130057#msg130057

        INVOKE  GetStockObject,OEM_FIXED_FONT
        INVOKE  GetObject,eax,sizeof LogFnt,offset LogFnt     ;LogFnt is a LOGFONT structure
        mov     LogFnt.lfHeight,TEXTCELLHEIGHT                ;standard = 12
        mov     LogFnt.lfWidth,TEXTCELLWIDTH                  ;standard = 8
        INVOKE  CreateFontIndirect,offset LogFnt
        mov     hFont,eax

remus2k

Ahh ok this is a nice info with this font Terminal

dedndave have for all probelms a solution :bg

Ok this question pass not to this thread sorry

This Opcode "and"
Performs a logical AND of the two operands replacing the destination
with the result.

can i use "mov" have i the sam effect?

example

and hBuff,0

dedndave

that will 0 the value hBuff
it may be small code, but it will not be fast
the CPU has to read the value at hBuff, AND it with 0, then store it - 2 memory accesses

Jochen showed me a similar trick to set all bits to 1
        or      eax,-1
3 bytes i think - instead of
        mov     eax,0FFFFFFFFh
5 bytes

as for setting the font, i think Alex showed me that one   :bg

remus2k

Thats is have i know

that will 0 the value hBuff

I fill every my buffer with 0 with this
xor eax,eax
mov hBuff,eax

Or if this wrong?

What you here say I have not understood waht you mean sorry
that will 0 the value hBuff
it may be small code, but it will not be fast
the CPU has to read the value at hBuff, AND it with 0, then store it - 2 memory accesses

Jochen showed me a similar trick to set all bits to 1


dedndave

que 0, o valor hBuff
pode ser um código pequeno, mas não será fácil
o processador tem de ler o valor em hBuff E com 0, então armazená-lo - 2 acessos à memória

Jochen mostrou-me um truque semelhante para definir todos os bits a 1
        or      eax,-1
3 bytes Eu acho - em vez de
        mov     eax,0FFFFFFFFh
5 bytes

se você quiser zerar uma reserva grande, use REP STOSD

http://translate.google.com/

:P

remus2k

 :bg

The old computer from 1980er have by writing a text a courser if this from
in the ascii table 219 and 220?

http://web.eecs.utk.edu/~pham/extend_ascii_table.jpg

I have google for a movie for this old pc and i cannot find

Have you an idea?

dedndave

Eu não entendo o seu Inglês
use o link acima para traduzir Português para Inglês para que possamos entender melhor


aqui está ele novamente
http://translate.google.com/

oex

And for those of you who dont speak Portuguese....

01001001001000000110010001101111001000000110111001101111011101000010000001110101011011100110010001100101011100100111001101110100011000010110111001100100001000000111100101101111011101010111001000100000010001010110111001100111011011000110100101110011011010000000110100001010001000000101010101110011011001010010000001110100011010000110010100100000011011000110100101101110011010110010000001100001011000100110111101110110011001010010000001110100011011110010000001110100011100100110000101101110011100110110110001100001011101000110010100100000010100000110111101110010011101000111010101100111011101010110010101110011011001010010000001110100011011110010000001000101011011100110011101101100011010010111001101101000001000000111001101101111001000000111011101100101001000000110001101100001011011100010000001100010011001010111010001110100011001010111001000100000011101010110111001100100011001010111001001110011011101000110000101101110011001000000110100001010000011010000101000001101000010100010000001101000011001010111001001100101001000000110100101110100001000000110100101110011001000000110000101100111011000010110100101101110

:lol
We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv