#garfield Logs
Mar 29 2025
#garfield Calendar
12:38 AM VanUnamed_ is now known as VanUnamed
01:27 AM Tom_L: haha http://tom-itx.no-ip.biz:443/~webpage/rue/CPU_instructions.pdf
01:28 AM Tom_L: z80 card
09:09 AM Tom_L: power_pb = self.findChild(QWidget, 'power_pb')
09:09 AM Tom_L: works
12:02 PM rue_mohr: 484 errors...
12:02 PM rue_mohr: Tom_L, see, I hate that about QT, in the next version, it will completely change
12:03 PM rue_mohr: do you know how long till their next QT release?
12:04 PM rue_mohr: 382 errors
12:06 PM Tom_L: nope
12:06 PM Tom_L: he was doing something special with a button and had to create a subclass and figure out how to address it
12:07 PM rue_mohr: 378 errors...
12:07 PM rue_mohr: huh
12:07 PM Tom_L: so the estop button when enabled will enable the power button but not until it is out of estop
12:08 PM Tom_L: and change the led indicator on each button accordingly
12:08 PM Tom_L: was basically a one line fix to address the sub class
12:09 PM rue_mohr: 333 errors
12:09 PM rue_mohr: estop is important :]
12:12 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/indicator.mkv
12:16 PM aandrew: https://x.com/_stocko_/status/1905650197079691675?s=46&t=5LPGvbdUzMRL0qV1ATLLSA
12:16 PM aandrew: That’s pretty cool
12:33 PM Tom_L: <rue_mohr> Tom_L, see, I hate that about QT
12:34 PM Tom_L: rue_mohr, that holds true with just about anything linux
12:43 PM rue_mohr: most of the developers are stupid, they maintain backwards compatability
12:43 PM rue_mohr: I only have this issue with QT and Ncurses so far :]
12:43 PM rue_mohr: well, the developers of SDCC also did something REALLY STUPID
12:44 PM rue_mohr: 303 errors
12:47 PM rue_mohr: 298
12:52 PM rue_mohr: 282
12:52 PM Tom_L: seem to be going in the right direction
12:52 PM Tom_L: oh
12:52 PM Tom_L: did you see my z80 cheat sheet?
12:56 PM rue_mohr: :]
12:56 PM rue_mohr: I have the whole book from mostek!
12:56 PM rue_mohr: 239
12:56 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/rue/CPU_instructions.pdf
12:58 PM rue_mohr: ah yes
12:58 PM rue_mohr: did you ever work with z80?
12:58 PM Tom_L: i don't think so
12:58 PM rue_mohr: lots of wonderful registers and multi-data instructions like search for byte
12:58 PM Tom_L: what was in the commodore 64?
12:58 PM Tom_L: and the heatkit uC thing
01:00 PM Tom_L: https://www.ebay.com/itm/355972430020
01:00 PM Tom_L: i may have had that one
01:00 PM Tom_L: i don't recall
01:00 PM Tom_L: what micro did it have?
01:01 PM rue_mohr: 6809 I think
01:01 PM Tom_L: it's possible it is still in the attic
01:01 PM rue_mohr: ebay cant render its page properly on my older browser
01:02 PM rue_mohr: thats pathetic
01:02 PM Tom_L: https://www.reddit.com/r/vintagecomputing/comments/nzw1vv/heathkit_et3400_microcomputer_learning_system_1978/
01:02 PM Tom_L: Motorola 6800
01:06 PM rue_mohr: 215
01:13 PM rue_mohr: 194
01:17 PM rue_mohr: 136
01:23 PM rue_mohr: 114
01:27 PM rue_mohr: 94
01:38 PM rue_mohr: 74
01:42 PM Tom_L: oh so close
01:47 PM rue_mohr: heh, then I go to the next file
01:49 PM rue_mohr: part of the fun is that he re-used line labels
01:52 PM Tom_L: what is it?
01:54 PM rue_mohr: BASIC for z80
01:54 PM rue_mohr: I'm porting it to a different assembler
01:54 PM rue_mohr: or maybe I'm just shredding the code, not sure yet
01:55 PM rue_mohr: I have another 4 files to deal with, 2 to port, 2 to write for my custom system
01:55 PM rue_mohr: tells ya, its REALLY cool to be able to just drop BAISC onto an 8051 with no other system provisions
02:01 PM rue_mohr: 37
02:16 PM rue_mohr: 22
02:17 PM rue_mohr: oh I see
02:18 PM rue_mohr: he used the same label for the token name and the function name
02:22 PM rue_mohr: 19
02:30 PM rue_mohr: 0
02:32 PM rue_mohr: this next file is only 1500 lines...
02:33 PM rue_mohr: the floating point one will be big
02:35 PM rue_mohr: were starting this one off with 334 errors
02:35 PM rue_mohr: hmm, the septic pump is cycling lots with the rain water
02:37 PM rue_mohr: 269
02:37 PM rue_mohr: I should have some food.
02:43 PM rue_mohr: 243
02:49 PM rue_mohr: 175
02:50 PM Tom_L: you're rippin right thru that one
02:52 PM rue_mohr: sure hope it works after all this
02:53 PM rue_mohr: if I want to port my brain to silicon this should be childs play
02:57 PM Tom_L: you should port 2
02:58 PM rue_mohr: oh I would probably makea few copies for safe
02:58 PM rue_mohr: 125
02:58 PM Tom_L: so you can visit with somebody
02:59 PM rue_mohr: well after the great human annihilation because "nobody thought he could be put in a position to accidentally lean on the button" I'll need it.
03:04 PM rue_mohr: 103
03:15 PM rue_mohr: this file has like 28 duplicated label names
03:15 PM rue_mohr: they are a pain to deal with
03:19 PM Tom_L: was that to save memory or what?
03:19 PM Tom_L: i've been guilty of that if i know it's a local variable
03:21 PM rue_mohr: no, it a thing the origional assembler let you do that the one I'm using wont
03:22 PM rue_mohr: 32
03:28 PM rue_mohr: 2
03:28 PM rue_mohr: 0
03:29 PM rue_mohr: floating point would be next
03:30 PM rue_mohr: 2300 lines
03:30 PM rue_mohr: I'm just going to make a guess
03:30 PM rue_mohr: there will be labels called:
03:30 PM rue_mohr: LOOP:
03:30 PM rue_mohr: ERROR:
03:30 PM rue_mohr: oh what was another one...
03:31 PM rue_mohr: ERROR0 and ERROR1
03:35 PM Tom_L: z80 supported floating point?
03:36 PM rue_mohr: nope!
03:37 PM rue_mohr: its kinda cool how fast a 6502 can rip off trig calculation
03:37 PM rue_mohr: s
03:49 PM rue_mohr: 402
03:50 PM Tom_L: wonder if i should pack some heat for honduras
03:55 PM rue_mohr: I was told handing them the bribe too fast is offensive
03:57 PM rue_mohr: 327
04:04 PM rue_mohr: 262
04:04 PM rue_mohr: this is the last of the easy bit
04:05 PM rue_mohr: after this I have to write a set of functions that function-out the stuff thats not supported and then write all the IO stuff I need for the system I'm running it on
04:09 PM rue_mohr: 252
04:11 PM rue_mohr: 244
04:22 PM rue_mohr: 192
04:28 PM rue_mohr: 139
04:31 PM aandrew: C64 used the 6510, VIC-20 was 6502
04:32 PM Tom_L: i wouldn't be surprised if there was a C64 in the attic as well
04:33 PM rue_mohr: I tore down all the ones I had
04:33 PM rue_mohr: ooh, sun is out!
04:34 PM rue_mohr: ok, now all the function renaming
04:34 PM rue_mohr: this bit is a lot of work
04:42 PM rue_mohr: 97
04:45 PM rue_mohr: grumble grbumble, rename 89 functions by hand
04:51 PM rue_mohr: 49
04:56 PM rue_mohr: hey!! there is the label called ERROR!
04:57 PM rue_mohr: 10
05:00 PM rue_mohr: 0
05:01 PM rue_mohr: ok, now just patch.asm and system.asm
05:01 PM rue_mohr: patch is a port, really simple,
05:01 PM rue_mohr: but system I have to actually write the code
05:02 PM rue_mohr: oh, no, I have to mostly rewrite patch too
05:04 PM aandrew: I missed it earlier, what software are you fixing up and why isn't it building as is?
05:04 PM rue_mohr: becasue assembler isn't standard
05:05 PM rue_mohr: and he's using some crazy assembler that I dont want to get into, I'm using SDCC
05:05 PM rue_mohr: well, sdasmz80
05:05 PM rue_mohr: so I had to port the source
05:05 PM rue_mohr: how hard could that be? right?
05:05 PM rue_mohr: :]
05:06 PM Tom_L: breeze for you
05:06 PM rue_mohr: har....
05:06 PM rue_mohr: somewhere around 8785 lines of code
05:07 PM rue_mohr: me and the regex engine are hard at work
05:07 PM Tom_L: it's not the number it's the quality of lines
05:07 PM Tom_L: ms got that wrong
05:08 PM rue_mohr: well,
05:08 PM rue_mohr: I'm SURE the 8051 basic is smaller, like WAY smaller
05:08 PM rue_mohr: but that would be a much harder thing to port
05:08 PM rue_mohr: might as well port apple basic
05:08 PM rue_mohr: (from 6502)
05:09 PM Tom_L: that'll be next
05:13 PM rue_mohr: I'm chasing the realization of a childhood fantasy
05:13 PM rue_mohr: with a bit of new tech poured on top
05:14 PM Tom_L: you ain't got time to reminisce
05:15 PM rue_mohr: mmm, some lookbacks are worth more than that
05:16 PM rue_mohr: ok, the simple of these files will be complex
05:16 PM rue_mohr: it spans a few things I didn't want to enguage in
05:17 PM rue_mohr: like an OS (there isn't one) and it provides for platform initialization which I was going to put elsewhere
05:18 PM rue_mohr: but the file system thing in it may get interesting as it overlaps/conflicts with the way I was going to handle multiple serial ports
05:19 PM rue_mohr: go walk thru the garden
05:19 PM rue_mohr: step on some weeds...
05:28 PM rue_mohr: rifraf, can you buy sandles at this time of year there?
05:28 PM rifraf: heh, i guess so, havn't seen a pair for long while
05:29 PM rue_mohr: hmm, can you name me an online shop you think would ship to canada?
05:29 PM Tom_L: canada doesn't sell sandals?
05:56 PM rue_mohr: probably in a few months
06:02 PM aandrew: and what is the code you're porting to sdcc?
06:07 PM rue_mohr: break-into-programming (deans) BBC basic for z80
06:31 PM rue_mohr: aha
06:31 PM rue_mohr: it all boils down to two calls
06:31 PM rue_mohr: RST 8 and RST 16
06:31 PM rue_mohr: read character and write character
06:31 PM rue_mohr: cool
06:31 PM rue_mohr: but there is a layer up, and I'm not sure which functions basic uses on those
06:37 PM rifraf: i think we have a 250% tarriff on sandals starting tuesday
06:37 PM rue_mohr: heh, not usually exports
06:38 PM rifraf: davinci resolve?
06:39 PM rue_mohr: geez there are a lot of layers here
06:39 PM rue_mohr: CLRSCN: CALL TELL
06:40 PM rue_mohr: TELL: EX (SP),HL ;GET RETURN ADDRESS
06:40 PM rue_mohr: CALL TEXT
06:40 PM rue_mohr: TEXT: LD A,(HL)
06:40 PM rue_mohr: INC HL
06:40 PM rue_mohr: OR A
06:40 PM rue_mohr: RET Z
06:40 PM rue_mohr: CALL OUT
06:41 PM rue_mohr: OUT: ..... CALL PE,OUTCHR
06:41 PM rue_mohr: OUTCHR: CALL OSWRCH
06:41 PM rue_mohr: OSWRCH: RST 16
06:41 PM rue_mohr: RET
06:42 PM rue_mohr: I put a lot of time into trying to break down the 8051 basic
06:42 PM rue_mohr: and all I got out of it was that there is a lot of it
06:43 PM rue_mohr: but I'm sure this is larger
06:43 PM rue_mohr: you know whats funny tho?
06:43 PM rue_mohr: CLRSCN and OSRWCH are in the same file
06:53 PM rue_mohr: drat, I needed to get the supplies for setting the light pole I got
07:14 PM rifraf: youtube working today?
07:16 PM rue_shop3: I dont work on sat or sun
07:16 PM rue_shop3: tho I'm on call this week for emergencies
07:16 PM rue_shop3: we take shifts
07:18 PM rifraf: https://www.youtube.com/watch?v=gzpZdmgiFGQ
07:18 PM rifraf: first attempt at editing in long time
07:26 PM rifraf: just the 2 of you in the team or more?
07:54 PM Tom_L: nice one
07:59 PM rifraf: cheers, need to make a short or 2 next, got a couple awesome clips
08:23 PM rue_mohr: how did I so badly miss what you said
08:38 PM rifraf: i thought you had a weekend job as a stripper
08:45 PM rue_mohr: na, my arms are no good with scrapers anymore
08:46 PM rue_mohr: well, I got some yard stuff done
08:47 PM rue_mohr: http://media.ruemohr.org/images/p1340150.jpg I rounded up the trees I'm growing
08:47 PM rue_mohr: http://media.ruemohr.org/images/p1340151.jpg the rubarb is comming up
08:48 PM rue_mohr: http://media.ruemohr.org/images/p1340152.jpg sign of carrots
08:48 PM rue_mohr: http://media.ruemohr.org/images/p1340153.jpg the water catch dam I made last week end filled up my 1000L tanks
08:49 PM rifraf: cool, but did you see me spinning top?
08:49 PM rue_mohr: yep
08:50 PM rue_mohr: long spin
08:50 PM rue_mohr: good video edit
08:50 PM Tom_L: did you use yt to edit or something else?
08:51 PM rue_mohr: all I did was play it! it was so easy!
08:51 PM rifraf: used davinci resolve
08:51 PM rue_mohr: :]
08:51 PM rifraf: wanna see more?
08:51 PM rue_mohr: I'm trying to not fall asleep
08:52 PM rue_mohr: tho, I'm on call, if I'm tired I should sleep
08:52 PM rue_mohr: I want to get this BASIC going
08:52 PM rifraf: the lext one is more peaceful, will help you sleep
08:52 PM rifraf: next*
08:53 PM rue_mohr: so
08:53 PM rue_mohr: 8000 images/year
08:54 PM rue_mohr: 667/month
08:54 PM rue_mohr: and I'm only at 529
08:55 PM rue_mohr: ugh 22 images a day!?
08:55 PM rue_mohr: I'm way too depressed to hit that
08:55 PM rifraf: https://www.youtube.com/shorts/Ipp7vrJm9WU?feature=share
08:55 PM rifraf: thats beautliful\
08:55 PM rue_mohr: heh
11:36 PM rue_mohr: arg,
11:36 PM rue_mohr: so, all thru this code
11:37 PM rue_mohr: to do reads, it returns a flag on timeout, instead of just checking if there was something to read in the first place
11:38 PM rue_mohr: drive me crazy