What do the operands and symbols mean? Anyone?
- barrym95838
- Posts: 2056
- Joined: 30 Jun 2013
- Location: Sacramento, CA, USA
Re: What do the operands and symbols mean? Anyone?
Charlie has an enlightening and entertaining SWEET16 article here.
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some VTL02C on it and see how it grows on you!
Mike B. (about me) (learning how to github)
Mike B. (about me) (learning how to github)
Re: What do the operands and symbols mean? Anyone?
cjs wrote:
After a wrong turn with the sweet16.txt source, I dropped the SW16RB.TXT source into the src/woz/ subdir of my 8bitdev repo, tweaked it to build with Macroassembler AS, and set up a couple of unit tests. One test just sets up a Sweet 16 RTN and runs the interpreter on it, mainly to make sure that it's correctly built and loaded into the simulator. The second test is the memory copy example given in the Sedgewick article.
Assuming the overall 8bitdev framework is working for you, it's pretty simple to add a new test or modify an existing text to run whatever Sweet 16 code you care to and examine the results on registers or memory. If anybody's playing with this (or wanting to play with it) and having difficulty, drop me a PM and I'll help you out with any problems you're having.
Assuming the overall 8bitdev framework is working for you, it's pretty simple to add a new test or modify an existing text to run whatever Sweet 16 code you care to and examine the results on registers or memory. If anybody's playing with this (or wanting to play with it) and having difficulty, drop me a PM and I'll help you out with any problems you're having.
Re: What do the operands and symbols mean? Anyone?
Do the variables for acc xreg and yreg need to go in RAM?
Code: Select all
;-------------------------------
ACC .BYTE 0
XREG .BYTE 0
YREG .BYTE 0
STATUS .BYTE 0- barrym95838
- Posts: 2056
- Joined: 30 Jun 2013
- Location: Sacramento, CA, USA
Re: What do the operands and symbols mean? Anyone?
If you want them to act like variables (and not constants or random number generators), then they should definitely be in RAM ...
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some VTL02C on it and see how it grows on you!
Mike B. (about me) (learning how to github)
Mike B. (about me) (learning how to github)
Re: What do the operands and symbols mean? Anyone?
barrym95838 wrote:
If you want them to act like variables (and not constants or random number generators), then they should definitely be in RAM ...
Re: What do the operands and symbols mean? Anyone?
In case it's helpful, that new thread is here: Woz Sweet16 Redux. Can anyone get this working?.
Curt J. Sampson - github.com/0cjs
- BigDumbDinosaur
- Posts: 9428
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: What do the operands and symbols mean? Anyone?
Jmstein7 wrote:
BigDumbDinosaur wrote:
...and if all else fails and you are desperate for 16-bit operations, you could consider the 65C816... 
All depends on how you define "fun."
Way back in the day, I tried to implement Sweet16 on the Commodore 128. It was a battle of trying to find enough zero page to handle the "registers." Not helping was Sweet16 was Apple-centric, which complicated things more. I finally concluded that Sweet16 was a solution in search of a problem, especially when considered against what could be accomplished with judicious use of assembler macros, even on an eight-bit processor.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: What do the operands and symbols mean? Anyone?
BigDumbDinosaur wrote:
Way back in the day, I tried to implement Sweet16 on the Commodore 128. It was a battle of trying to find enough zero page to handle the "registers."
Quote:
Not helping was Sweet16 was Apple-centric, which complicated things more.
Quote:
I finally concluded that Sweet16 was a solution in search of a problem, especially when considered against what could be accomplished with judicious use of assembler macros, even on an eight-bit processor.
Curt J. Sampson - github.com/0cjs
Re: What do the operands and symbols mean? Anyone?
cjs wrote:
BigDumbDinosaur wrote:
Way back in the day, I tried to implement Sweet16 on the Commodore 128. It was a battle of trying to find enough zero page to handle the "registers."
Quote:
Not helping was Sweet16 was Apple-centric, which complicated things more.
Quote:
I finally concluded that Sweet16 was a solution in search of a problem, especially when considered against what could be accomplished with judicious use of assembler macros, even on an eight-bit processor.
-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Re: What do the operands and symbols mean? Anyone?
drogon wrote:
...that Applesoft uses Zero page seemingly at random... I know there was work to sanitise EhBASIC's Zero page usage - which is good in that it's now in one well-defined block, but Applesoft? It's evaded me so-far....
Curt J. Sampson - github.com/0cjs
Re: What do the operands and symbols mean? Anyone?
cjs wrote:
drogon wrote:
...that Applesoft uses Zero page seemingly at random... I know there was work to sanitise EhBASIC's Zero page usage - which is good in that it's now in one well-defined block, but Applesoft? It's evaded me so-far....
-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Re: What do the operands and symbols mean? Anyone?
cjs wrote:
In case it's helpful, that new thread is here: Woz Sweet16 Redux. Can anyone get this working?.
- BigDumbDinosaur
- Posts: 9428
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: What do the operands and symbols mean? Anyone?
cjs wrote:
BigDumbDinosaur wrote:
Way back in the day, I tried to implement Sweet16 on the Commodore 128. It was a battle of trying to find enough zero page to handle the "registers."
As I (somewhat dimly) recall, Sweet16 expected its "registers" to be on zero page. Also, I usually had an M/L keyboard input routine running in the cassette buffer, so it was seldom unoccupied space.
Quote:
Quote:
Not helping was Sweet16 was Apple-centric, which complicated things more.
I no longer recall the details (after all, it was some 35 years ago), but I think there was some sort of Apple ROM dependency that was getting in the way.
Quote:
Quote:
I finally concluded that Sweet16 was a solution in search of a problem, especially when considered against what could be accomplished with judicious use of assembler macros, even on an eight-bit processor.
Well, my software development activity is mostly for my benefit.
Quote:
But it actually seems to have worked pretty well for a good number of utilities related to Apple's Integer BASIC.
I'm sure it did, else Wozniak wouldn't have expended the effort to write it. I thought it would be useful to me when I started doing Lt. Kernal development, since there was a lot of 16-bit arithmetic involved. However, it was around that time that I acquired the HCD65 assembler for the C-128, which had good macro facilities. I was able to use macros to assist with the 16-bit stuff, eliminating the need for Sweet16.
Quote:
Also, I think it may have helped that back in the day when this was used (late '70s) macro assemblers were not widely available to microcomputer users and memory was considerably tighter than it was even just a couple of years later. (Not so many people now seem to consider a 4K system a reasonable target, and an 8K system to be fairly expansive.)
Yes, I recall those days, as I have been writing 6502 code since 1977. The crossassembler that I used back then was quite limited compared to what was later available...no macro language, in particular. It wasn't interactive as well...it ran on the IBM S370 mainframe and input was via punch card. More than once I had a deck of cards mangled by the card reader...I was elated when I finally got a terminal and could actually edit my code in real time.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: What do the operands and symbols mean? Anyone?
BigDumbDinosaur wrote:
I finally concluded that Sweet16 was a solution in search of a problem, especially when considered against what could be accomplished with judicious use of assembler macros
-- Jeff
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
https://laughtonelectronics.com/Arcana/ ... mmary.html
Re: What do the operands and symbols mean? Anyone?
BigDumbDinosaur wrote:
I no longer recall the details (after all, it was some 35 years ago), but I think there was some sort of Apple ROM dependency that was getting in the way.
Quote:
Well, my software development activity is mostly for my benefit. :D My conclusion was based upon what I wanted to achieve. Try not to be so combative...
Curt J. Sampson - github.com/0cjs