On 28/05/2025 10:00, Bill Gunshannon via cctalk wrote:

I am going to assume there are other TRS-80 people hanging out
here and go ahead and ask this:

Has anyone here used the DEFUSRx command?

I tried to use it for something I am working on and it
didn't work.

So, I copied the example program from page 115 of the
Model III Disk System Owner's Manual and, guess what,
it didn't work either.

150 DEFUSR1 = &H7D00
returns a Syntax Error

150 DEFUSR1 = 32000
works fine.

Anybody else ever run into this?

I can't believe something as blatant as that could have
gone on for all those years.

A misprint in a manual never corrected? Surly not!

I can't speak for the TRS-80 (you don't say which one) but Microsoft BASIC of the time didn't allow for non-decimal numbers in its syntax. I'm more familiar with the 6502 variants, but I'd expect the parser would be expecting an integer expression at that point.

I've written few Microsoft compatible BASICs for embedded processors in my time, and hex constants are one of the additional features I add.

If you think it does support hex manifest constants, try PRINT &H7D00 and see how far you get. I'd expect the normal Microsoft expression parser to be called for DEF USRx  - there's no reason to call anything else. It's just not how it works.

Regards, Frank.


Reply via email to