logs archiveIRC Archive / Undernet / #asm / 2006 / July / 15 / 1
Run
Hola
Where is TCA?
Asmodee`
TCA is MIA
probably for a month or 2
EwIck
mia?
Asmodee`
Missing In Action
EwIck
he's not coming back
Asmodee`
term used to described soldiers who are unaccounted for, but not confirmed dead
zee
whats the format for pushing letters / numbers asm uses ?
014h = 20
Inode
depends on the assembler syntax
zee
i just want to push 9999999
is there a converter ?
         

Inode
for intel.... push 041h or maybe push 'A'
for at&t... pushb $0x41 or pushb 'A'
zee
oh
intel = 0 + hex + h
thnx
:)
Inode
though... decimal numbers without extra syntax should work fine
zee
wait
Ingersol
hi
zee
9999999 = 5F5E0FFh
whats this format called anyway 5F5E0FFh
Inode
hexadecimal notation?
zee
:)
u know of a calc ?
bin to hex not
Inode
oh
which os do you use?
zee
win 2000 / linux
Inode
well for windows
you should have a program called calc.exe
edcba
just type /run calc
Inode
put it into scientific mode
and then select your base
zee
hmmm
Inode
on linux... try dc for console, or xcalc in xwindows
zee
there's no notation calculation there
Inode
for which one?
zee
win
u sure it is on nux ?
Inode
well
for windows calc
click on the 'View' menu and choose scientific
there should be radio buttons for 'Hex', 'Dec', 'Oct', 'Bin'
choose one of them
and enter the number you want to convert
then
when click on the one you'd like to get the result in
(you don't need extra syntax for the numbers there)
zee
octal != natation
if u type 41 in hex
press "not"
u get FFFFFFFFBE
funny huh ?
         

Inode
those (and, xor, not) are bitwise operators
not will invert all the bits in the number
zee
oh
lol
but there is just octal
right
Inode
what do you mean?
zee
it only converts to octal natation, not hexademical
:)
hex dec oct bin
Inode
well, choose dec... enter some decimal number then click hex or bin
zee
hex != hex notation
this doesn't calculate it
thnx anyway
Inode
you should read the help file
zee
9999999 = 5F5E0FFh (hex notation) 9999999 = 98967F (hex)
its 2 diffrent things
:)
calc does only hex
Inode
well
the problem with the last one
9999999 = 98967F (hex)
9999999 = 5F5E0FFh (hex notation)
9999999 == 98967F
err
999999 == 98967F
you forget the last 9 there
zee
7 x 9 = 5F5E0FFh (hex notation)
7 x 9 = 98967F (hex)
i typed it here incorectly, but correctly in calc :D
omfg nvm
i really should get some sleep
everything u said is right
i just got lost
Inode
well you know what i meant.... i also left some digits out there
zee
one more thing
http://authors.aspalliance.com/aylar/ViewPasteCode.aspx?PasteCodeID=5780
__asm__ ("\
push 00403000\
mov eax, 0x7C41AC6E\
call eax\
");
Error: too many memory references for `push'
how come ?
Inode
here, i see
__asm__ ("\
push PAUSE\
mov eax, 0x7C41AC6E\
call eax\
");
zee
push pause is the right one
Inode
ok
zee
i'm trying to push pause into "system
" call address
Inode
well you can try adding some spacing before the line joiners, '\'
anyway
zee
same thing
Inode
unless you're adjusting the stack registers to change the address... it prob. won't work like that
but
you could maybe
lea eax, PAUSE
mov [addr-of-system-call/ptr], eax
that might just replace the system call's routine's pointer/address with the address of the PAUSE routine
zee
hmm
Error: too many memory references for `lea'
Inode
maybe you should be using at&t syntax
leal PAUSE, %eax
movl %eax, (addr-of-syscall-ptr)
zee
nah Error: too many memory references for `lea'
i mean
Error: suffix or operands invalid for `lea'
:)
Inode
ok
zee
u mean
movl %eax, (0x7C41AC6E/%ptr) ?
Inode
no
zee
movl %eax, (0x7C41AC6E, %ptr) ?
Inode
nope
zee
lol what is ?
Inode
movl %eax, (the-address-of-where-the-pointer-to-the-system-calls-routine-is-stored)
zee
suffix or operands invalid for `lea'
Error: junk `mov (0x7C41AC6E)' after expression
Inode
what is 0x7C41AC6E ?
zee
78001000 msvcrt.<ModuleEntryPoint>
00018EBF 739 system
Inode
which compiler are you using btw?
zee
(78001000 + 00018EBF = 7C41AC6E)
gcc
msvcrt.dll "system"
trying to make
system("pause");
but this asm won't compile
Inode
oh
i thought you wanted to run pause instead of the real system when it's called
ok
« prev 1 2 next »