Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Let the machine do the dirty work. -- "Elements of Programming Style", Kernighan and Ritchie


computers / comp.sys.apple2 / hex edit

SubjectAuthor
* hex editSteven Nelson
+- Re: hex editHugh Hood
`* Re: hex editHugh Hood
 `* Re: hex editHugh Hood
  `- Re: hex editSteven Nelson

1
hex edit

<511eecf6-64e2-49ab-ac82-40e1995738cen@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=3641&group=comp.sys.apple2#3641

 copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a37:e301:: with SMTP id y1mr15917374qki.475.1631028219446;
Tue, 07 Sep 2021 08:23:39 -0700 (PDT)
X-Received: by 2002:a05:620a:2232:: with SMTP id n18mr16757776qkh.216.1631028219249;
Tue, 07 Sep 2021 08:23:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Tue, 7 Sep 2021 08:23:38 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2604:2d80:d504:db00:e39e:dd42:48ea:a44e;
posting-account=UlB7qAoAAAA9LHBN3DIp3gGbyxRPo0y2
NNTP-Posting-Host: 2604:2d80:d504:db00:e39e:dd42:48ea:a44e
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <511eecf6-64e2-49ab-ac82-40e1995738cen@googlegroups.com>
Subject: hex edit
From: nelsons...@gmail.com (Steven Nelson)
Injection-Date: Tue, 07 Sep 2021 15:23:39 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 12
 by: Steven Nelson - Tue, 7 Sep 2021 15:23 UTC

What are options for editing a prodos bin/sys file? I want to hex edit a file and replace instances of '73C0' with '71C0'. I could use BLOCK.WARDEN from ProSel and block edit the file. I could use copy2plus and sector edit the file (messier). Is there a simpler way of editing the file without reading/editing/writing blocks? Bloading the file into memory using basic.system seems like a good option but I don't remember monitor options for searching? Any good file hex editors?

For the curious I am trying to edit some ramworks code to work with super expander E instead of ramworks. Cards work the same except super expander e uses $c071 for bank switching and ramworks uses $c073. There are 9 instances of $c073 in the file. File length is slighly under $1700 bytes if I recall.

Re: hex edit

<DD5D1A40.4CDAD%hughhood@earthlink.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=3642&group=comp.sys.apple2#3642

 copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 07 Sep 2021 13:31:45 -0500
User-Agent: Microsoft-Entourage/11.4.0.080122
Date: Tue, 07 Sep 2021 13:31:44 -0500
Subject: Re: hex edit
From: hughh...@earthlink.net (Hugh Hood)
Newsgroups: comp.sys.apple2
Message-ID: <DD5D1A40.4CDAD%hughhood@earthlink.net>
Thread-Topic: hex edit
Thread-Index: AdekFpu/2hxsOBAJEeyi6QAKlWesng==
References: <511eecf6-64e2-49ab-ac82-40e1995738cen@googlegroups.com>
Mime-version: 1.0
Content-type: text/plain;
charset="US-ASCII"
Content-transfer-encoding: 7bit
Lines: 31
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 172.58.100.145
X-Trace: sv3-GfqoPfjyq66Zf0uVla+9Ou+jlzq0G1LiEwEqu5WffFmsCvGRvIFwVXN4GSN1qpA/QdiSlgsxJObXZO0!lEoDsyme+dp5HvB6gMBQFTySoMlUX3GGy4/PDB7uQQwhspk3kunxI8AAvAlbQ1//OgryqAPEnOlJ!gU+kld3DxuGH0BpnqYNzZnI=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2304
 by: Hugh Hood - Tue, 7 Sep 2021 18:31 UTC

Steven,

If you have a IIgs (or an emulator) handy, Ewen Wannop's ChewBagger is a
superb tool for doing what you'd like to do.

It has Find and Replace across an entire file.

<https://speccie.uk/software/chewbagger/>

Hugh Hood

in article 511eecf6-64e2-49ab-ac82-40e1995738cen@googlegroups.com, Steven
Nelson at nelsonse48@gmail.com wrote on 9/7/21 10:23 AM:

> What are options for editing a prodos bin/sys file? I want to hex edit a file
> and replace instances of '73C0' with '71C0'. I could use BLOCK.WARDEN from
> ProSel and block edit the file. I could use copy2plus and sector edit the
> file (messier). Is there a simpler way of editing the file without
> reading/editing/writing blocks? Bloading the file into memory using
> basic.system seems like a good option but I don't remember monitor options for
> searching? Any good file hex editors?
>
> For the curious I am trying to edit some ramworks code to work with super
> expander E instead of ramworks. Cards work the same except super expander e
> uses $c071 for bank switching and ramworks uses $c073. There are 9 instances
> of $c073 in the file. File length is slighly under $1700 bytes if I recall.

Re: hex edit

<r4ydnSXB6vAv0qX8nZ2dnUU7-ffNnZ2d@earthlink.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=3644&group=comp.sys.apple2#3644

 copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 08 Sep 2021 00:52:50 -0500
Subject: Re: hex edit
Newsgroups: comp.sys.apple2
References: <511eecf6-64e2-49ab-ac82-40e1995738cen@googlegroups.com>
From: hughh...@earthlink.net (Hugh Hood)
Date: Wed, 8 Sep 2021 00:52:50 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
MIME-Version: 1.0
In-Reply-To: <511eecf6-64e2-49ab-ac82-40e1995738cen@googlegroups.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Message-ID: <r4ydnSXB6vAv0qX8nZ2dnUU7-ffNnZ2d@earthlink.com>
Lines: 25
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 208.189.118.170
X-Trace: sv3-aBd0PGDAkn9ej19cROMD6eTFogLGpc8Zbp9zdSLFHSBiEcRTu3tpkHxuQ8sjXOwkAbSYh+HPjnmcHN3!T+l2TJhqULjuLJugrWtyt7lfV+F9ch4/tybgGMwXNwgOAQ/jXJeKPnZCbMHmCmS+Ok4gJrNualJ4!ixQ0/jEfwqD0a16XDT9bnlZP9XGwa7CQB3L3
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2084
 by: Hugh Hood - Wed, 8 Sep 2021 05:52 UTC

On 9/7/2021 10:23 AM, Steven Nelson wrote:
>
> For the curious I am trying to edit some ramworks code to work with
> super expander E instead of ramworks. Cards work the same except
> super expander e uses $c071 for bank switching and ramworks uses
> $c073. There are 9 instances of $c073 in the file. File length is
> slightly under $1700 bytes if I recall.
>

Steven,

I don't know which version of AppleWorks you're working with here, but
in version 5.1 I noticed 6 instances of $C073 in 'APLWORKS.SYSTEM' and 6
instances of $C073 in 'SEG.AM'. The latter file is the aux card memory
manager routines.

I _thought_ there might be one other place where #$C0 was loaded into
the 'X' register and #$73 into the 'Y' register for further processing,
but I was not able to locate that on my quick re-inspection, so I may
have imagined that.

Hugh Hood

Re: hex edit

<w96dnSe3V9eozKX8nZ2dnUU7-WudnZ2d@earthlink.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=3645&group=comp.sys.apple2#3645

 copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 08 Sep 2021 00:59:17 -0500
Subject: Re: hex edit
Newsgroups: comp.sys.apple2
References: <511eecf6-64e2-49ab-ac82-40e1995738cen@googlegroups.com>
<r4ydnSXB6vAv0qX8nZ2dnUU7-ffNnZ2d@earthlink.com>
From: hughh...@earthlink.net (Hugh Hood)
Date: Wed, 8 Sep 2021 00:59:17 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
MIME-Version: 1.0
In-Reply-To: <r4ydnSXB6vAv0qX8nZ2dnUU7-ffNnZ2d@earthlink.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Message-ID: <w96dnSe3V9eozKX8nZ2dnUU7-WudnZ2d@earthlink.com>
Lines: 42
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 208.189.118.170
X-Trace: sv3-f8bQjfGtLG8SIsySqLdT7rph0O4loGYQTsOsHODer0D2WskwIJubjqo+YpZovJCRM8F9ONbyUTS/IbL!AUfE+YfeMV2iOyp5itrDqepqV6ikrlIcUJE7hT6sB8Vj8uACDQeFR7MG4e9QM1lDM+wtbNBxtv9N!lC9V8CuVYNRuzjI6qyQRpWKXQhJWaqVo4M+H
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2367
 by: Hugh Hood - Wed, 8 Sep 2021 05:59 UTC

Steven,

I shouldn't jump to conclusions. You never mentioned AppleWorks here as
the program you needed to modify.

Apologies.

Hugh Hood

On 9/8/2021 12:52 AM, Hugh Hood wrote:
> On 9/7/2021 10:23 AM, Steven Nelson wrote:
>>
>> For the curious I am trying to edit some ramworks code to work with
>> super expander E instead of ramworks. Cards work the same except
>> super expander e uses $c071 for bank switching and ramworks uses
>> $c073. There are 9 instances of $c073 in the file. File length is
>> slightly under $1700 bytes if I recall.
>>
>
> Steven,
>
> I don't know which version of AppleWorks you're working with here, but
> in version 5.1 I noticed 6 instances of $C073 in 'APLWORKS.SYSTEM' and 6
> instances of $C073 in 'SEG.AM'. The latter file is the aux card memory
> manager routines.
>
> I _thought_ there might be one other place where #$C0 was loaded into
> the 'X' register and #$73 into the 'Y' register for further processing,
> but I was not able to locate that on my quick re-inspection, so I may
> have imagined that.
>
>
>
>
> Hugh Hood
>

Re: hex edit

<a834d2fa-6131-4d7b-9918-437ec6b2e7d8n@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=3646&group=comp.sys.apple2#3646

 copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a05:620a:2297:: with SMTP id o23mr3506613qkh.405.1631110203850;
Wed, 08 Sep 2021 07:10:03 -0700 (PDT)
X-Received: by 2002:ad4:5b8b:: with SMTP id 11mr4084813qvp.51.1631110203703;
Wed, 08 Sep 2021 07:10:03 -0700 (PDT)
Path: i2pn2.org!rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Wed, 8 Sep 2021 07:10:03 -0700 (PDT)
In-Reply-To: <w96dnSe3V9eozKX8nZ2dnUU7-WudnZ2d@earthlink.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2604:2d80:d504:db00:e39e:dd42:48ea:a44e;
posting-account=UlB7qAoAAAA9LHBN3DIp3gGbyxRPo0y2
NNTP-Posting-Host: 2604:2d80:d504:db00:e39e:dd42:48ea:a44e
References: <511eecf6-64e2-49ab-ac82-40e1995738cen@googlegroups.com>
<r4ydnSXB6vAv0qX8nZ2dnUU7-ffNnZ2d@earthlink.com> <w96dnSe3V9eozKX8nZ2dnUU7-WudnZ2d@earthlink.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a834d2fa-6131-4d7b-9918-437ec6b2e7d8n@googlegroups.com>
Subject: Re: hex edit
From: nelsons...@gmail.com (Steven Nelson)
Injection-Date: Wed, 08 Sep 2021 14:10:03 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 20
 by: Steven Nelson - Wed, 8 Sep 2021 14:10 UTC

On Wednesday, September 8, 2021 at 12:59:23 AM UTC-5, Hugh Hood wrote:
> Steven,
>
> I shouldn't jump to conclusions. You never mentioned AppleWorks here as
> the program you needed to modify.
>
> Apologies.
>

Thanks Hugh. Your knowledge of Appleworks is amazing. The code I wanted to modify is KM.RAMWORKS from A2OSX. Remy GIBERT kindly modified KM.RAMWORKS to work with both ramworks and super expander e. Ramworks uses $c073 for bank switching. Super expander E uses $c071. Alas my IIe died before I could test the new code. I modified my Appleworks years ago to work with the Super expander E (probably with your help). I don't remember making that many $c073 changes though :-) I will get my IIe working again (I still have 8 spares in the basement). It is power supplies I am out of and I just put a reactive computing replacement in the dead IIe a couple months ago. Voltages check out but maybe it isn't supplying enough current. I need to swap to confirm. Motherboard wise I don't know where to begin. Apple2-4fr!

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor