Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Ignorance is bliss. -- Thomas Gray Fortune updates the great quotes, #42: BLISS is ignorance.


devel / comp.sys.cbm / Messing around, creating a disk editor.

SubjectAuthor
* Messing around, creating a disk editor.KP KP
+- Messing around, creating a disk editor.Andreas Kohlbach
`- Messing around, creating a disk editor.Myles Skinner

1
Messing around, creating a disk editor.

<cba3da1f-18e8-4a5f-a9b2-baa0f355341cn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=599&group=comp.sys.cbm#599

  copy link   Newsgroups: comp.sys.cbm
X-Received: by 2002:a05:622a:390:b0:3ee:be98:9fcf with SMTP id j16-20020a05622a039000b003eebe989fcfmr378058qtx.0.1686095735075;
Tue, 06 Jun 2023 16:55:35 -0700 (PDT)
X-Received: by 2002:a25:6a09:0:b0:bac:faf4:78fd with SMTP id
f9-20020a256a09000000b00bacfaf478fdmr1287037ybc.7.1686095734821; Tue, 06 Jun
2023 16:55:34 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.cbm
Date: Tue, 6 Jun 2023 16:55:34 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=209.52.142.120; posting-account=ck3qSAoAAACvs2RQorfjIIWSqJFDc0az
NNTP-Posting-Host: 209.52.142.120
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cba3da1f-18e8-4a5f-a9b2-baa0f355341cn@googlegroups.com>
Subject: Messing around, creating a disk editor.
From: jungletrain@outlook.com (KP KP)
Injection-Date: Tue, 06 Jun 2023 23:55:35 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2376
 by: KP KP - Tue, 6 Jun 2023 23:55 UTC

I need some scrutinizing on my crappy coding expertise. Haven't made a program in years.. Could be junk or have no idea what I am doing. Gibberish? Lol.

10 PRINT "***** C64 DISK EDITOR *****"
20 PRINT
30 INPUT "Enter the name of the disk file: "; FILENAME$
40 PRINT
50 OPEN 1, 8, 15, FILENAME$
60 PRINT "1. Display sector"
70 PRINT "2. Edit sector"
80 PRINT "3. Save changes"
90 PRINT "4. Quit"
100 PRINT
110 INPUT "Enter your choice: "; CHOICE
120 PRINT

130 IF CHOICE = 1 THEN
140 INPUT "Enter the sector number to display: "; SECTOR
150 PRINT
160 SYS 64738
170 PRINT
180 GOTO 50
190 ELSEIF CHOICE = 2 THEN
200 INPUT "Enter the sector number to edit: "; SECTOR
210 PRINT
220 PRINT "WARNING: You are about to modify the sector contents."
230 PRINT "Make sure you know what you're doing!"
240 PRINT
250 INPUT "Press any key to continue, or Q to cancel: "; KEY$
260 IF KEY$ = "Q" OR KEY$ = "q" THEN GOTO 50
270 PRINT
280 SYS 64738
290 PRINT
300 GOTO 50
310 ELSEIF CHOICE = 3 THEN
320 PRINT "Saving changes..."
330 PRINT
340 CLOSE 1
350 OPEN 1, 8, 2, FILENAME$
360 CLOSE 1
370 PRINT "Changes saved successfully!"
380 PRINT
390 GOTO 50
400 ELSEIF CHOICE = 4 THEN
410 CLOSE 1
420 END
430 ELSE
440 PRINT "Invalid choice. Please try again."
450 PRINT
460 GOTO 50
470 END IF

480 GOTO 50

Re: Messing around, creating a disk editor.

<87bkhs599e.fsf@usenet.ankman.de>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=600&group=comp.sys.cbm#600

  copy link   Newsgroups: comp.sys.cbm
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ank@spamfence.net (Andreas Kohlbach)
Newsgroups: comp.sys.cbm
Subject: Re: Messing around, creating a disk editor.
Date: Tue, 06 Jun 2023 21:52:29 -0400
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <87bkhs599e.fsf@usenet.ankman.de>
References: <cba3da1f-18e8-4a5f-a9b2-baa0f355341cn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="9317f95fb36b8e08015b3ee495aad9d9";
logging-data="955053"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6YDQ616/7L2wIsQMO3XST"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:qROxtorW7aCjcGcPce/PLRwoL6M=
sha1:/mpX+DxvEXB2QNKhijoVvSJaORQ=
 by: Andreas Kohlbach - Wed, 7 Jun 2023 01:52 UTC

On Tue, 6 Jun 2023 16:55:34 -0700 (PDT), KP KP wrote:
>
> I need some scrutinizing on my crappy coding expertise. Haven't made a
> program in years.. Could be junk or have no idea what I am
> doing. Gibberish? Lol.
>
>
> 10 PRINT "***** C64 DISK EDITOR *****"
> 20 PRINT
> 30 INPUT "Enter the name of the disk file: "; FILENAME$
> 40 PRINT
> 50 OPEN 1, 8, 15, FILENAME$
> 60 PRINT "1. Display sector"
> 70 PRINT "2. Edit sector"
> 80 PRINT "3. Save changes"
> 90 PRINT "4. Quit"
> 100 PRINT
> 110 INPUT "Enter your choice: "; CHOICE
> 120 PRINT
>
> 130 IF CHOICE = 1 THEN
> 140 INPUT "Enter the sector number to display: "; SECTOR
> 150 PRINT
> 160 SYS 64738

That'll do a System-Reset, and the rest is ignored. Worse, you leaving a
data channel open (line 50).

> 170 PRINT
> 180 GOTO 50
> 190 ELSEIF CHOICE = 2 THEN

Commodore BASIC (at least not of the C64) doesn't know "ELSE". May be of
the C128? But I never used it.
--
Andreas

Re: Messing around, creating a disk editor.

<c8a574f9-6007-4324-9af6-0e95c0a06336n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=603&group=comp.sys.cbm#603

  copy link   Newsgroups: comp.sys.cbm
X-Received: by 2002:a05:620a:4014:b0:75b:12fe:8a95 with SMTP id h20-20020a05620a401400b0075b12fe8a95mr1551560qko.4.1686265824919;
Thu, 08 Jun 2023 16:10:24 -0700 (PDT)
X-Received: by 2002:a25:d196:0:b0:ba8:9455:85b9 with SMTP id
i144-20020a25d196000000b00ba8945585b9mr317204ybg.4.1686265824665; Thu, 08 Jun
2023 16:10:24 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!newsfeed.hasname.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.cbm
Date: Thu, 8 Jun 2023 16:10:24 -0700 (PDT)
In-Reply-To: <cba3da1f-18e8-4a5f-a9b2-baa0f355341cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=45.3.31.182; posting-account=7ZwCoAoAAAC5SWv0qwSxtMmVDVy0ymKY
NNTP-Posting-Host: 45.3.31.182
References: <cba3da1f-18e8-4a5f-a9b2-baa0f355341cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c8a574f9-6007-4324-9af6-0e95c0a06336n@googlegroups.com>
Subject: Re: Messing around, creating a disk editor.
From: myles.skinner@gmail.com (Myles Skinner)
Injection-Date: Thu, 08 Jun 2023 23:10:24 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1816
 by: Myles Skinner - Thu, 8 Jun 2023 23:10 UTC

On Tuesday, 6 June 2023 at 19:55:35 UTC-4, KP KP wrote:
> I need some scrutinizing on my crappy coding expertise. Haven't made a program in years.. Could be junk or have no idea what I am doing. Gibberish? Lol.

Uh, so I have to ask...was this your own work? Because it looks suspiciously like some of the almost-but-not-quite-BASIC generated by ChatGPT that I've had the "pleasure" of critiquing lately: quite aside from the invalid keywords, I see the mixed-case PRINT strings, unreachable lines, opening and then closing a file for no reason, gratuitous calls to the system reset all as red flags...HIBT?

ms

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor