flat assembler
Message board for the users of flat assembler.
![]() Goto page 1, 2 Next |
Author |
|
gumletis
sounds may lol, but how do i move a 8 bit to a ex 16 bit register, or 8 to 32 bit??.. FX moving AL to DX...
_________________ LOOOL |
|||
![]() |
|
Dryobates
Code: movzx dx, al ; if you want extend to zero high order byte movsx dx, al ; if you want preserve sign |
|||
![]() |
|
bubach
La viro parolas Esperanton...
![]() |
|||
![]() |
|
gumletis
WHAT?
|
|||
![]() |
|
beppe85
If you are programming in 16 bits, you do not use dx as a base register, but bx(usually) instead. On 32 bits, you must use 32 bits registers:
[codeedx+1], byte '$'[/code] Note that I specified the size, byte. |
|||
![]() |
|
bubach
It's a phrase in (the language) Esperanto.
Last edited by bubach on 13 Feb 2012, 15:25; edited 1 time in total |
|||
![]() |
|
gumletis
how do i change that? or what you saying? ps bubach, i don't understand a shit of what you saying...
![]() |
|||
![]() |
|
iklin
bubach wrote: La viro parolas Esperanton... Something like "Men speak in Esperanto"? |
|||
![]() |
|
Madis731
OK, the poster have not exactly understood, where you're getting at:
I think I know what you need: Code: Sample db "onvrwovjw" mov dx,Sample mov byte[dx+10],'$' ;You don't need BYTE if you have defined "db" ;-OR- mov edx,Sample mov byte[edx+10],'$' ;Assembler understands that (e)dx is a byte variable(I think) ;You should use byte, word, dword for code readability or when you really would like to split DWORD into BYTEs or vice versa... |
|||
![]() |
|
gumletis
its becuase, with one low bit(
![]() |
|||
![]() |
|
gumletis
anybody?
|
|||
![]() |
|
iklin
RegSetValue, RegSetValueEx and other Reg....... functions from advapi32.dll
Code: LONG RegSetValue( HKEY hKey, // handle of key to set value for LPCTSTR lpSubKey, // address of subkey name DWORD dwType, // type of value LPCTSTR lpData, // address of value data DWORD cbData // size of value data ); It's from Win32 SDK Reference help aka win32.hlp which I'm using hardly every day ![]() |
|||
![]() |
|
gumletis
... i know the api, but it is possible to do it with interrups...?
|
|||
![]() |
|
f0dder
Quote:
What's the point? The API will work on all win32 versions, using interrupts will lock you to NT (I believe 9x uses a funky r3->r0 method involving ARPL?) |
|||
![]() |
|
vid
not in windoze, you don't use interrupt there anymore (well, only in some device drivers or so).
|
|||
![]() |
|
f0dder
Well, on NT you can access the native API through interrupts... but the question is why you'd want to do it (at least for regular programs).
|
|||
![]() |
|
iklin
Are you wanted something like this? Accesing to registry without APIs?
Maybe author of this tool can help you...
|
|||||||||||
![]() |
|
gumletis
there is no source in it...
|
|||
![]() |
|
iklin
Yes! And what? You can simply email the author or you can re-engeneering this file and try to understand the algorithms and concepts. Asm-coding is teaching us to dive deeper, imho.
Look at Privalov or JonhFound! They are incredible men! And I'm just an amateur next to them. Well... If registry contains any kind of information it must have the format. And somethere in the world there is description of this format. And if you couldn't get it you can try to understand it by yourself. But don't forget that registry format had changed from version to version. And this is may cause a problem... Good luck! ![]() |
|||
![]() |
|
Goto page 1, 2 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.