Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic Misc > Re: copying BIO...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 33 Topic 1393 of 1492
Post > Topic >>

Re: copying BIOS to a file

by "Tom Lake" <tlake@[EMAIL PROTECTED] > Dec 18, 2007 at 01:28 PM

"H-Man" <I-Hate@[EMAIL PROTECTED]
> wrote in message 
news:476809be$0$40805$892e0abb@[EMAIL PROTECTED]
> On Tue, 18 Dec 2007 12:22:35 -0500, Tom Lake wrote:
>
>> "Allan Adler" <ara@[EMAIL PROTECTED]
> wrote in message
>> news:y93zlw855oj.fsf@[EMAIL PROTECTED]
>>>I have FREEDOS installed on a partition of one of my old machines.
>>> I also have gwbasic on it. I'd like to write a basic program that will
>>> copy the ROM BIOS of the machine (locations 0xC0000 to 0xFFFFF) to
>>> a file. I think I can remember how to use peek but I don't know how
>>> to write stuff to a file in gwbasic. How is this done? The program
>>> can probably be written in just a few lines. If someone feels like
>>> just writing it and posting it, that would be very helpful. Thanks.

> Tom
> Would he not have to cover SEG &HD000 and SEG &HE000 as well? Or am I
> missing something?

It looks like I was missing something!  I believe you're right.

DEF SEG = &HC000
OPEN "BIOS.BIN" FOR OUTPUT AS #1
FOR I=0 TO &HFFFF
PRINT #1, CHR$(PEEK(I));
NEXT
DEF SEG=&HD000
FOR I=0 TO &HFFFF
PRINT #1, CHR$(PEEK(I));
NEXT
DEF SEG=&HE000
FOR I=0 TO &HFFFF
PRINT #1, CHR$(PEEK(I));
NEXT
DEF SEG=&HF000
FOR I=0 TO &HFFFF
PRINT #1, CHR$(PEEK(I));
NEXT
CLOSE #1

Tom Lake
 




 33 Posts in Topic:
copying BIOS to a file
Allan Adler <ara@[EMAI  2007-12-18 11:27:40 
Re: copying BIOS to a file
"Tom Lake" <  2007-12-18 12:22:35 
Re: copying BIOS to a file
H-Man <I-Hate@[EMAIL P  2007-12-18 10:56:17 
Re: copying BIOS to a file
"Tom Lake" <  2007-12-18 13:28:57 
Re: copying BIOS to a file
"Auric__" <n  2007-12-18 18:26:36 
Re: copying BIOS to a file
"Tom Lake" <  2007-12-18 13:56:45 
Re: copying BIOS to a file
ArarghMail712NOSPAM@[EMAI  2007-12-18 13:14:30 
Re: copying BIOS to a file
"Auric__" <n  2007-12-18 20:07:02 
Re: copying BIOS to a file
"Auric__" <n  2007-12-18 20:09:14 
Re: copying BIOS to a file
"Tom Lake" <  2007-12-18 15:18:25 
Re: copying BIOS to a file
ArarghMail712NOSPAM@[EMAI  2007-12-18 14:40:44 
Re: copying BIOS to a file
"Auric__" <n  2007-12-18 21:51:17 
Re: copying BIOS to a file
ArarghMail712NOSPAM@[EMAI  2007-12-18 16:29:06 
Re: copying BIOS to a file
cavelamb himself <cave  2007-12-18 16:55:01 
Re: copying BIOS to a file
ArarghMail712NOSPAM@[EMAI  2007-12-18 18:53:58 
Re: copying BIOS to a file
"Tom Lake" <  2007-12-18 22:18:43 
Re: copying BIOS to a file
ppnerkDELETETHIS@[EMAIL P  2007-12-19 11:37:12 
Re: copying BIOS to a file
ArarghMail712NOSPAM@[EMAI  2007-12-19 18:52:06 
Re: copying BIOS to a file
"Tom Lake" <  2007-12-19 20:36:33 
Re: copying BIOS to a file
ArarghMail712NOSPAM@[EMAI  2007-12-19 18:50:34 
Re: copying BIOS to a file
ArarghMail712NOSPAM@[EMAI  2007-12-18 14:39:30 
Re: copying BIOS to a file
"Auric__" <n  2007-12-18 21:54:17 
Re: copying BIOS to a file
ArarghMail712NOSPAM@[EMAI  2007-12-18 16:34:48 
Re: copying BIOS to a file
"Auric__" <n  2007-12-19 15:10:21 
Re: copying BIOS to a file
ArarghMail712NOSPAM@[EMAI  2007-12-19 18:56:10 
Re: copying BIOS to a file
H-Man <I-Hate@[EMAIL P  2007-12-19 10:07:13 
Re: copying BIOS to a file
"Auric__" <n  2007-12-19 20:23:26 
Re: copying BIOS to a file
"Judson McClendon&qu  2007-12-19 15:27:19 
Re: copying BIOS to a file
"Auric__" <n  2007-12-19 21:57:36 
Re: copying BIOS to a file
"Judson McClendon&qu  2007-12-19 16:43:52 
Re: copying BIOS to a file
"Auric__" <n  2007-12-19 23:23:09 
Re: copying BIOS to a file
"R.Nicholson" &  2007-12-19 18:34:06 
Re: copying BIOS to a file
Derek <derekrss@[EMAIL  2007-12-19 20:11:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 2:41:00 CDT 2008.