Hi:

Your recent ideas about adding CIRCLE() to m100 BASIC look VERY
Interesting. Coincidentally I was just messing around with drawing regular
polygons on the M100 using integers only. (I concluded it was possible for
some of the simple ones (like a hexagon or "6-gon") but not the 22-gon (22
sided you mentioned). Of course a square is built-in since that is part of
m100 BASIC already. Obviously the higher number of sides starts to
approximate a circle. I was trying to avoid the cycle penalty of using
trigonometric functions to draw regular polygons or a regular polygon with
infinite sides, called a "circle".

The only Tandy BASICs that had CIRCLE() built-in were those for the Color
Computer. Circle() was first built-in to a Microsoft BASIC with BASICA
introduced for the IBM 5150, the original IBM PC. Then it was integrated
into GW-BASIC. Microsoft used what is called the "Midpoint Circle Algorithm
(Bresenham's)" for all their BASIC dialects that incorporated the CIRCLE()
command. Other companies used other methods. For example Apple used
something to do with the divisibility of odd numbers to draw circles in
their BASIC. The original Commodore BASIC does not have a native CIRCLE()
command but I think it was added in a follow-up called Simon's BASIC.

Here is a link to a question I asked Google Gemini (free version since I am
cheap and retired) about the CIRCLE() command. And a simulator window to
show results of "trig" vs "midpoint" approaches. It also offeres the
opportunity for either m100 BASIC or machine code to implement the
"Midpoint Circle Algorithm" on the m100.

MCA re CIRCLE()
<https://www.google.com/search?smstk=ChhtbENQODV5ZXU2aVo5NkJzOUU3TGRxVT0QARgA&smstidx=1&q=how+many+sides+does+a+circle%28%29+command+in+gwbasic+produce&udm=50&csuir=1&aep=34&kgs=30faec8dfcf98bad&shem=agpl%2Caiolsbe%2Casdpe%2Casple%2Cepsd1%2Crimspwouoe&shndl=37&shmd=H4sIAAAAAAAA_3WQwUoEMQyGWU-yF8Gjp-BJhZ3OXBYVwcfwWDJtbAttMzQdut72sXwGX8DXscLuSbwkkPB_-cj2-2Kr3zxWSFQ9W-B3sAVbyA5MKCaSQOM1WlgK29UQVE8gibl3qVBI1liBMyDUIrvHERJbijCNI4gpRPn15sXXusizUq21wUnFGsxgOCkhLMbvOjqxwpC0eCykq1_TnDHEYcnu9vqcdswu0oBBPTx5bpAwf4AE2xUt94In47t76PC-tRAyuDajBHP2PxyvjpvPy6-N_k8qJHQkai4d0N9wOuu0K2gD5aqmw5-Z7vlssVg97Ue7_Hr_AMNlJ6RaAQAA&shmds=v1_ARwrE21UF7N0lL3X_NsI28voM-fm4djO-iWDb_jk34cRs_JdJg&source=sh%2Fx%2Faim%2Fm1%2F4&mtid=VhbWaqXlGaKvptQPoZnsoAs>

You may want to read about the processor and target market differences
between the Color Computer and the m100 machines. One was a portable
business machine, the other a game machine for kids and others.  From your
discussions it appears the developers of the Japanese Kyocera laptop
cousins to the m100 considered the CIRCLE() command but shelved it to
possibly save memory space on the machine?

m100 vs CoCo
<https://www.google.com/search?smstk=ChhkeTd5N2NxODMvazZlNDdMMXJyU1dCOD0QBBgA&smstidx=0&q=processing+power+of+trs-80+model+100+vs+tandy+color+computer&udm=50&csuir=1&aep=34&kgs=fc35ef628312b241&shem=agpl%2Caiolsbe%2Casdpe%2Casple%2Cepsd1%2Crimspwouoe&shndl=37&shmd=H4sIAAAAAAAA_3WOsWoDMRBEc11wY0iZSqQM-HTXGGP8L2J9WusEJ63Y3cs5nT8r35BfShMZ7Mq4mWKGmXmrv2Z1KEwDisQcTKEF2dDJKMtm15lEHifTd535EqOQ_bcZaCKumsqsyO-HUbXI3tplWdogChqHtqZWEHgYN3U8kYWYnIzA6HSc0zFDnNqSw8fbvR2IwoQtRPv5cr6sL83P62_jnm3HBAHFHrkSVexbO7jA4CNmtf35wXNy5Qf2rt92vlzv_wG0zpB4_gAAAA&shmds=v1_ARwrE20K8K3O46RuHIW7gpv5KxHCFq5EwfrsIShIJl4C58dMRA&source=sh%2Fx%2Faim%2Fm1%2F4&mtid=_RXWav7zNrGGw8cP6b_rsQQ>

Regards and Cheers
Dave KV3F

Reply via email to