logs archiveIRC Archive / Undernet / #asm / 2006 / April / 8 / 1
khy
?? .ee
Buu.
Chiu_Lee
no wisebot. try google.
khy
Hallo neonfreon.
nepravda
nepravda
hello exe!
khy
How are you?!
nepravda
I'm really good :)
I'm moving
dbtid
hey nepravda
where you moving to girl?
USA?
Canada?
nepravda
.hr
dbtid
c-bot: .hr
         

c-bot
dbtid, here you go: Croatia/Hrvatska
dbtid
whoa
hotspot
why you moving there?
nepravda
my father
:)
khy
She's turning from Scandinavian to Slavic :_/
D347H
is there a way to print variables inside a string in assembly?
for ex, in C: int blah; ... "this is an integer: %d", blah
replaces the %d with the integer in blah..
i tried defining a string like this: message db "this is a number ", number, "$"
but that didn't work
dbtid
you can call printf from assembly...
D347H
ah i'm not using C though..
just used that as an example of what i'm trying to do in assembly
i suppose it has to be done manually like everything else haha
khy
He's saying to you that you can use printf _from_ assembly.
like, call _printf
D347H
oh.. do i have to include any libraries for that?
khy
Yes, you will have to link with libc I guess.
D347H
alright cool.. i'll try that out then. thanks for the help..
oookay..
i don't get what exactly int 13h is doing man
does it format a whole track or does it format one sector?? what the hell..
i'm reading my book but it doesn't make sense
http://hdebruijn.soo.dto.tudelft.nl/newpage/interupt/out-0600.htm#0553
over here it says it formats a track
but the address field has a field for sector number...
how can you update the sector number if it formats the whole track at once
???
l00dD00d
looking for some help with some MIPS code
im making recursive calls and need to save my stuff to the stack, which is fine
D347H
if you don't update the sector number it'll write 0, 0, 1, 0200 for each sector in a track
l00dD00d
but i'm doing a recursive call within a call
D347H
and?
l00dD00d
basically i want to do this "return func(m-1, func(m,n-1))"
where func(m,n)
i can't figure how to make the nested recursive calls...
D347H
just put a ret after you've met the condition to break out of the first recursion
oh it's the same function..
l00dD00d
yeah
D347H
http://maven.smith.edu/~thiebaut/ArtOfAssembly/CH11/CH11-7.html#HEADING7-86
that might help
l00dD00d
thanks
         

D347H
np
Tau
It only allows to the access the data placed with?
neonfreon
huh
Tau
+programs
D347H
i keep getting "Bad address mark" when i try to read data from the floppy after formatting.. what does that mean?
Leona_K
hello
Tau
hello Leona_K....:)
Leona_K
Hi Tau
khy
Leona_K!
Leona_K
Hey khy, how are you?
khy
I'm fine, and you lady?
Leona_K
I'm ok. So what is going on in here today? It looks quiet...
khy
We had some asm-related action before you joined.
What does your ident mean? is bjorn? is bear?
Leona_K
asm-related action, hum? I always miss the great stuff hehe
And you are right, björn is a bear. The 'is' prefix stands for ice
D347H
can someone Please help me out???
Leona_K
So basically, it's all about icebear *or polarbear*
D347H
i've been at this for like a week and a half already
khy
Leona_K is that Swedish?
Leona_K
khy: yes
khy
Nice :_)
I'm trying to learn Norwegian
Leona_K
D347H : just ask...
Yeah? Nice
D347H
i'm trying to create a program to do a low level format on a floppy
i ran through one format but the floppy's unreadable
even with int 13h ah=2
it returns 02 in ah
which apparently means "Bad Address Mark"
i tried using int 26h which bypasses the dos filesystem and it returns the same thing
how're you supposed to use int 13h, ah=05h
does it format a whole track at once?
http://hdebruijn.soo.dto.tudelft.nl/newpage/interupt/out-0600.htm#0553
if you say, AL=18, which is the number of sectors in a track for a 1.44mb 3.5" floppy..
then it formats 18 sectors at once.. but you can't change the sector number in the address field
so it'll write: track 0, head 0, sector number 0, sector size 512
for all sectors in the first track
when it should increment the sector number for each sector right? so it should be 1, 2, 3, 4, etc.. to 18.
in the address field buffer
cheko
whats in here?
D347H
here's me source code:
*my
http://rafb.net/paste/results/OBg6ja74.html
Leona_K
well... D347H was asking a question that we obviously can't answer, cheko
cheko
..so..why is that?
Leona_K
I'm an amateur at asm. I still come in here for the warm, exciting ambience.
cheko
lol...
dont look at me...im just a begginer
any way what was the question?
Leona_K
problems while trying to perform a format on a floppy
cheko
=/ i guest i cant obviously answer that too
D347H
i'm trying to use int 13h ah=5 to format a floppy
i did one iteration
but when i read from it
it returns ah=02, which translates to "bad address mark"
cheko
guest => guess
and what do you think?
D347H
well i'm guessing i formatted it incorrectly
but i don't know how else to do it
the parameter for int 13h , ah=5h make no sense either
*parameters
cheko
cant help
sorry
D347H
oh well..
cheko
where can i find a reference for ints?
tiocsti
search for ralph brown
D347H
http://hdebruijn.soo.dto.tudelft.nl/newpage/interupt/out-0600.htm#0553
cheko
thnx
ES:BX -> address field buffer <-- whts that?
D347H
it's the few variables underneath the function
00h BYTE track number
01h BYTE head number (0-based)
02h BYTE sector number
03h BYTE sector size (00h=128 bytes, 01h=256 bytes, 02h=512, 03h=1024)
you just load the address the first byte into bx
cheko
and youre pssing formatblock to it?
D347H
yea
cheko
=/
what are you studing?
D347H
i think i know the problem.. but i don't know if i'm right or not only because the way they specify int 13h is so stupid.
computer science
you?
cheko
electronic engenieering
D347H
cool
cheko
sometimes
=P
D347H
well it's better than compsci i guess
anyway..
cheko
anyway i havent reach your level yet...im just coding some f**ing mccarthy algorythm in MIPS assambler
D347H
ah..
you probably won't do much coding though right?
« prev 1 2 next »