This is a cache of https://vccplus.brianholman.com/manuals/vibe-coding-with-chatgpt/03-basic/. It is a snapshot of the page as it appeared on 2026-11-21T00:01:44.159+0000.
Give Mars a different greeting · Vibe Coding with ChatGPT · VCC Plus
← Manual LibraryVCC Plus 3.7.1 · Reading on the web

Try the exercises in VCC Plus. Example links download files here; open them in the app to work beside the emulator.

The complete book · PDF editionBook 12: Vibe Coding with ChatGPT

46 pages · VCC Plus 3.7.1 · Keep a copy to read or print.

Download PDF
Contents

Chapter 3 of 9

Give Mars a different greeting

The CoCo asks you to choose Earth or Mars. Earth gets a blue greeting. Mars gets a red one. This time you'd like a visitor to Mars to see Bring a warm coat! You can describe that change to ChatGPT in a sentence. The interesting question is how you'll know the sentence made it all the way to the emulated CoCo.

Find the greeting

  1. Open Develop → BASIC Development. If you have a draft you want to keep, save it. Choose New to open the Earth or Mars starter. In VCC Plus, the BASIC editor holds the listing on your Mac. The CoCo has its own program memory.
  2. In this editor's … menu, choose Local Assistant Access…. Select Allow proposed edits and controls for runs I start, then Save Review and Run Connection…. Use Add to ChatGPT and open a new Work chat in ChatGPT for Mac. If you already connected this exact draft with review access, you can keep using that chat.
  3. Ask ChatGPT to read the listing through VCC Plus. Give it a question whose answer you can check in the editor.

Find the numbered line that sets the Mars greeting. Quote that line from my shared BASIC draft. What does each side of the colon do?

You should find the following line in both places.

90 PALETTE 6,37:M$="Hello Cold Red Dot World!"

BASIC executes two statements on line 90. The first assigns color 37 to palette entry 6. The second puts a string into the variable M$. A later PRINT displays the string. Changing the words inside the quotes lets you leave the palette and the keyboard routine alone.

Review one line

Propose a one-line edit through VCC Plus. On line 90 change the Mars greeting to exactly "Bring a warm coat!" Keep the rest of the listing as it is.

Look in the VCC Plus review window. If ChatGPT only displays code in the conversation, ask it to submit the edit to the shared draft for review. Check the line number, the palette values, the quotation marks and the exclamation mark. Here is the line to look for.

90 PALETTE 6,37:M$="Bring a warm coat!"

Choose Apply Edit. The new line now appears in the Mac editor. You can still choose Undo Edit at this revision. If the preview changes anything else, choose Cancel Edit and ask for the single line again. If you typed in the editor while the review was open, have ChatGPT reread the current draft and submit a fresh proposal.

Try the two planets

Use a running Disk BASIC system at its OK prompt. Save any guest program you want to keep before replacing it. In the review window, choose Run Both Choices. This button recognizes the starter with the exact revised line above. For a different listing, use Run and test the choices yourself or ask the connected assistant to press the keys.

Watch the results for each planet. VCC Plus tries 3 first and checks that the menu stays up. It then tries 2 and reads Bring a warm coat! from the guest. On a fresh run it tries 1 and reads Hello Nice Blue Dot World! The check samples the background color of each greeting. It also types PRINT 7 after each run and looks for 7 followed by OK. That last exchange tells you BASIC is accepting commands again.

Read the verification results from VCC Plus. What happened after key 3? Give the greeting and the observed background for each valid key.

Use RGB output for the starter's blue and red. On composite output, the Mars palette value can appear amber. If a run is blocked, ask which condition VCC Plus reports. A mounted cassette, a writable disk or active DriveWire can prevent a shared run. Use the native media controls to resolve the reported condition after saving any changes you want to keep.

Start with an empty listing

Save your planet program. Choose Revoke Access for that connection. Choose New, click in the source editor, select all its text and delete it. Share this empty draft with review access and give ChatGPT the next job.

Propose a complete numbered BASIC listing for this empty draft. Print the squares of the whole numbers 1 through 4, one result per line, then end. Use VCC Plus to submit it for review.

Read the proposed loop before choosing Apply Edit. Which line repeats, and what ends the loop? Choose Run, then ask ChatGPT to read back the screen. Look for 1, 4, 9 and 16 in order. Change the request to stop at 5, predict the last result, and check it against a second run. Save the listing you want to keep.

Original VCC Plus manuals © 2026 Brian K. Holman. Third-party references retain their authors’ copyrights and licenses. Artwork notices. Edition 3.7.1; source and export identity. Printable edition: PDF source and export identity.

A closer look

Open original