logs archiveIRC Archive / Undernet / #asm / 2006 / April / 1 / 1
Chiu_Lee
and of course you need the closing calling dos function 4c00
put your code in a bastbin or something and paste the url here
SHM1L
ok
http://pastebin.com/633253
Chiu_Lee, anything wrong ?
Chiu_Lee
well...
I would put a label after org 100
SHM1L
PROGRAM:
Chiu_Lee
and put an end your_label after the end of the code segment
SHM1L
like PROGRAM:
and END PROGRAM
Chiu_Lee
yup
and you also missed the 4c00 dos function call at the end of the program
SHM1L
errr.. same program
Chiu_Lee, where do i have to call it ?
toro

_| _| _|
_|_|_|_| _| _| _| _|_| _| _|
_| _| _| _|_| _| _|
_| _| _| _| _| _|
_|_| _| _| _|

(Action) continues the spamming
         

SHM1L
(Action) thinks no one realy cares...
toro
woo!
t
::: ::: ::::::: ::::::: :::::::::::
:+: :+: :+: :+: :+: :+: :+:
+:+ +:+ +:+ +:+ +:+ +:+ +:+
+#+ +:+ +#+ +#+ +:+ +#+ +:+ +#+
+#+ +#+#+ +#+ +#+ +#+ +#+ +#+ +#+
#+#+# #+#+# #+# #+# #+# #+# #+#
### ### ####### ####### ###
Inode
SHM1L: what exactly are you wanting that code to do?
SHM1L
i think i solved it
i add ml /c /coff
_| _| _|
<toro> _|_|_|_| _| _| _| _|_| _| _|
<toro> _| _| _| _|_| _| _|
<toro> _| _| _| _| _| _|
oops
LINK : fatal error LNK1221: a subsystem can't be inferred and must be defined
this is the new error
toro
hehehe
see? you love me!
everybody loves me
Chiu_Lee
(Action) hates toro :D
toro
###### ## #####
# # # #
##### # # #
# ###### #
# # # #
###### # # #
SHM1L
(Action) did write toro i wrote: t ii r ii
toro
_ _ _
| | (_) |
___| |__ _| |_
/ __| '_ \| | __|
\__ \ | | | | |_
|___/_| |_|_|\__|
SHM1L
you are a talent boy
Chiu_Lee
SHM1L .. you let him speak to you like that?
toro
:|
that's not fair, tio
SHM1L
Chiu_Lee, i dont realy care
little boys do not scares me
;)
tiocsti
dont spam the channel, it makes me grumpy, k tnx
Chiu_Lee
toro .. you let him speak of you like that?
toro
nah, i cant be arsed
tio is grumpy so all be nice
(Action) wraps a blanket around tio and gives him his soup
Chiu_Lee
(Action) brought the beer. where is the fridge?
toro
oooh
beer
(Action) loves Chiu_Lee
SHM1L
(Action) brought the milk where is the bed ?
toro
SHM1L: eww, you perv
         

SHM1L
toro, will you teach me drawing technix ?
toro
no
D347H
hello.. i was wondering.. is the master boot record identical for all floppys that have been formatted with fat12?
Chiu_Lee
according to the specs .... never mind. sure. it's identical.
they're identical. bad grammer.
SHM1L
all i want is to make a simple program and be able to make a com/exe out of it
masm dosn't work for me :(
D347H
so if garbage was written to the mbr of a floppy.. and you knew it was fat 12 before.. you could recover it by re-writing ANY fat12 mbr to it?
Inode
floppies have a boot sector more like a partition boot record than an mbr
D347H
i see..
Inode
things that will differ are the Volume Label, maybe the Volume ID, Hidden Sectors could be another one
D347H
yea there're slight differences..
suppose i backed up the boot record of a floppy.. and only the boot record.. and then wrote garbage to one on the floppy.. is it possible to just write the backed up one back to it and everything would be okay?
Inode
depening of the disk contents, you could rework a pbr that should work, but it could be pretty difficult to begin with
"depending on" even
yeah
D347H
i see
Inode
as long as it was only the first 512 bytes you wrote garbage to
D347H
right..
cuz that's one sector?
Inode
yes
D347H
cool
hm..
how would you write it though.. because there's no filesystem on the floppy anymore
Inode
well, you could use a tool like dd
or
tiocsti
int 13h
D347H
03h?
Inode
yes
something like.... al = 1, ch = 0, cl = 1, dh = 0, dl = 0, es:bx should point to your backup
D347H
okay i think i got it..
what does it mean by bit 6-7 of CL?
CL = sector number 1-63 (bits 0-5) high two bits of cylinder (bits 6-7, hard disk only)
toro
CL is 8 bits wide. 6 and 7 means the most significant bit and the next one to it
D347H
ohh okay so the cylinder number is extended from CH to the high two bits of CL?
yea
so the cylinder number occupies 10 btis?
*bits
i'm looking at this page: http://home.teleport.com/~brainy/interrupts.htm
close to the end
it seems like the cylinder number is 76543210 76
in terms of bit numbers
well anyway.. i guess i have to verify each write that it does since it's directly talking to bios..
thanks a bunch for the help guys..
gonna try this stuff out..
cya.
SHM1L
how do i make an empty line in a string ?
24h use to end the string
what is used to make an empty line ?
tiocsti
\r\n
SHM1L
tiocsti, \n = c....
?
Inode
\r == 0Dh, \n == 0Ah
tiocsti
a lot of assemblers support c style escapes
SHM1L
why when i do the following routine it does not realy works...
CHECK:
CMP AL,'1'
JE MSG1
CMP AL,'2'
JE MSG2
?
tiocsti
whats the error?
SHM1L
no error, it just works wrong
tiocsti
well that code is fine, maybe something else is wrong
Inode
use JZ instead of JE
tiocsti
jz and je are the same instruction
Inode
thanks, didn't know that
SHM1L
Inode, why ?
Inode
well
because if a CMP works out that first and second operand are equal
the zero flag is set (zf = 1)
SHM1L
ok
« prev 1 2 next »