For ZX81 floating point, the sign is in the 2nd value byte as shown in the original "ZX81 BASIC Programming" book.
Chapter 27 - Organization of memory
Search found 387 matches
- Sun Jul 27, 2014 6:23 am
- Forum: Development
- Topic: ZX Floating point to Decimal code in BASIC
- Replies: 12
- Views: 12708
- Sun Jul 27, 2014 6:07 am
- Forum: Development
- Topic: ZX Floating point to Decimal code in BASIC
- Replies: 12
- Views: 12708
Re: ZX Floating point to Decimal code in BASIC
For comparison, here is the same BASIC routine converted to C++ known issues: * since it doesn't calculate the FP conversion in the exact same way as ZX81 Basic, it rounds differently. * I haven't tested or implemented E+00 notation for extremely large or extremely small numbers #include <math.h> //...
- Sun Jul 27, 2014 5:35 am
- Forum: Development
- Topic: ZxList 6, P file to BASIC conversion app
- Replies: 32
- Views: 17720
Re: ZxList 6, P file to BASIC conversion app
Sorry, I haven't been able to access the forum all week (I get "Error 503 : Service Temporarily Unavailable"). I finally borrowed another computer. Here is the requested 32-bit app. It is not VB, as the free versions of VB are now Visual Basic .NET and are not compatible with Visual Basic. It is a C...
- Mon Jul 21, 2014 10:47 am
- Forum: Development
- Topic: ZX Floating point to Decimal code in BASIC
- Replies: 12
- Views: 12708
ZX Floating point to Decimal code in BASIC
I wrote this 10 years ago, not sure how accurate it is. But it seems to work. Comments/corrections are welcomed. David G Sub FloatToDec (ZxString$, DecNumber#) Dim FirstByte As Double Dim ZxDigits As Double Dim SecondByte As Double Dim t As Double Dim Xdigits As Double Dim ZxSign As Double Dim figur...
- Mon Jul 21, 2014 10:36 am
- Forum: Development
- Topic: ZxList 6, P file to BASIC conversion app
- Replies: 32
- Views: 17720
Re: ZxList 6, P file to BASIC conversion app
Thanks XavSnap.
I have now included Cmdialog.vbx in the attachment.
I had previously tried ZXTools, but wasn't able to figure out how to install it.
I have now included Cmdialog.vbx in the attachment.
I had previously tried ZXTools, but wasn't able to figure out how to install it.
- Sun Jul 20, 2014 3:14 am
- Forum: Development
- Topic: ZX81-IDE Software Development Tool, IDE
- Replies: 44
- Views: 52210
Re: ZX81-IDE Software Development Tool, IDE
feel free to post errors or missbehaviours just here I notice some unexpected behavior and could not find a previous report. When concatenating strings, ZX-IDE compiles: this: 5 LET U$="HELLO " 8 LET U$=U$+"CLIVE" 12 PRINT U$ to this: 5 LET U$="HELLO " 8 LET U$=U$+AT CLIVE 12 PRINT U$ The original ...
- Thu Jul 17, 2014 8:33 am
- Forum: Development
- Topic: ZxList 6, P file to BASIC conversion app
- Replies: 32
- Views: 17720
ZxList 6, P file to BASIC conversion app
Hi team, EDIT: 5 October 2022 version 6.5 beta now available (download is below) for modern Windows Been doing a few bytes of ZX81 coding recently. Zx Lister 6.0 takes a P file as input, and outputs a text file containing the BASIC listing. It's now compatible with the ZX-IDE Software Development To...