flat assembler
Message board for the users of flat assembler.
![]() Goto page 1, 2 Next |
Author |
|
gumletis 07 Jan 2005, 09:01
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 07 Jan 2005, 10:44
Code: movzx dx, al ; if you want extend to zero high order byte movsx dx, al ; if you want preserve sign |
|||
![]() |
|
bubach 07 Jan 2005, 13:48
La viro parolas Esperanton...
![]() |
|||
![]() |
|
gumletis 07 Jan 2005, 17:03
WHAT?
|
|||
![]() |
|
beppe85 07 Jan 2005, 17:44
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 07 Jan 2005, 18:08
It's a phrase in (the language) Esperanto.
Last edited by bubach on 13 Feb 2012, 15:25; edited 1 time in total |
|||
![]() |
|
gumletis 07 Jan 2005, 18:59
how do i change that? or what you saying? ps bubach, i don't understand a shit of what you saying...
![]() |
|||
![]() |
|
iklin 07 Jan 2005, 20:53
bubach wrote: La viro parolas Esperanton... Something like "Men speak in Esperanto"? |
|||
![]() |
|
Madis731 07 Jan 2005, 21:26
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 08 Jan 2005, 10:07
its becuase, with one low bit(
![]() |
|||
![]() |
|
gumletis 08 Jan 2005, 17:45
anybody?
|
|||
![]() |
|
iklin 08 Jan 2005, 18:23
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 08 Jan 2005, 18:45
... i know the api, but it is possible to do it with interrups...?
|
|||
![]() |
|
f0dder 08 Jan 2005, 19:18
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 08 Jan 2005, 19:22
not in windoze, you don't use interrupt there anymore (well, only in some device drivers or so).
|
|||
![]() |
|
f0dder 08 Jan 2005, 20:01
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 08 Jan 2005, 20:14
Are you wanted something like this? Accesing to registry without APIs?
Maybe author of this tool can help you...
|
|||||||||||
![]() |
|
gumletis 09 Jan 2005, 15:48
there is no source in it...
|
|||
![]() |
|
iklin 09 Jan 2005, 20:59
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.