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 5 of 33 Topic 1393 of 1492
Post > Topic >>

Re: copying BIOS to a file

by "Auric__" <not.my.real@[EMAIL PROTECTED] > Dec 18, 2007 at 06:26 PM

On Tue, 18 Dec 2007 18:28:57 GMT, Tom Lake wrote:

> "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 

How about:
OPEN "BIOS.BIN" FOR OUTPUT AS 1
FOR J = &HC0000 TO &HF0000 STEP &h10000
DEF SEG J
FOR I = 0 TO &hFFFF
PRINT #1, CHR$(PEEK(I));
NEXT I
NEXT J
CLOSE 1

-- 
- I can't believe those words just came out of my mouth.
- Better those words than those teeth.
 




 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 Fri Jul 25 15:07:12 CDT 2008.