Forum: Assembly
Mar 14th, 2008, 10:19 PM
|
|
Replies: 8
Views: 405
Re: Deleting chracters
Such an useless argument...
Anyway, just AND the byte (assuming it's ANSI) by 0xDF, that should force it go to uppercase and that is faster than any of the aforementioned arguments. After doing so...
|
Forum: Assembly
Mar 10th, 2008, 10:41 AM
|
|
Replies: 10
Views: 613
Re: [MASM32] Working with arrays
Oh, the problems aren't in your linking flags but rather your compiler flags. Just add /GS- to your compiler flags.
Good luck :)
Also, it's fine; I also code in C(++) :P
|
Forum: Assembly
Mar 10th, 2008, 6:51 AM
|
|
Replies: 10
Views: 613
|
Forum: Assembly
Mar 10th, 2008, 2:33 AM
|
|
Replies: 7
Views: 466
Re: [x86]Instruction test setting the zero flag
Fortunately for me, the first page goes back further than 6 months :) Albeit the fact that the main benefactors of the thread probably won't see it, others who are looking into the subject probably...
|
Forum: Assembly
Mar 10th, 2008, 2:30 AM
|
|
Replies: 10
Views: 613
Re: [MASM32] Working with arrays
HeapAlloc is only recommended for small buffers, so for anything from 64-1024 bytes I use GlobalAlloc (then use VirtualAlloc for anything larger). Anyway, for a function like GetKeyboardState (which...
|
Forum: C++
Mar 9th, 2008, 7:32 AM
|
|
Replies: 17
Views: 578
Re: Console Game Development
Stupid methodology by the previous posters, it is quite simple to just parse results from ReadConsoleInput and do all the raw handling from there.
|
Forum: Assembly
Mar 9th, 2008, 7:29 AM
|
|
Replies: 7
Views: 466
Re: [x86]Instruction test setting the zero flag
Arguing about the readability of things such as 'XOR REG,REG'/'TEST REG,REG' is stupid. Someone should not be complaining about how they can understand somebody elses source when it's such a simple...
|
Forum: Assembly
Mar 9th, 2008, 7:27 AM
|
|
Replies: 5
Views: 325
|
Forum: Assembly
Mar 9th, 2008, 7:24 AM
|
|
Replies: 10
Views: 613
Re: [MASM32] Working with arrays
IsKeyPressed proc Key:DWORD
mov ecx, [dwKey]
movzx eax, byte [gKeys+ecx]
test eax, eax
sete al
ret
IsKeyPressed endp
InputCreate proc
push 256d
|