Search This Blog

Tuesday, December 31, 2024

Bascom PUSHALL

 

I ran into a conundrum when trying to get my UART0 sniffer program going.
After the BASCOM PUSHALL statement, R24 was always zero.

I compiled this code snipit and then disassembled it to see what PUSHALL did.

Code:

Pushall  ' <-- Seems to have strange effects when used here

Franks_Push:
!PUSH r16
!PUSH r24
!PUSH r25
!PUSH r26
!PUSH r27
!PUSH r28
!PUSH r29
!PUSH r30
!PUSH r31
 




Code:

51:       Pushall  ' <-- Seems to have strange effects when used here
+000000BB:   920F        PUSH      R0             Push register on stack
+000000BC:   921F        PUSH      R1             Push register on stack
+000000BD:   922F        PUSH      R2             Push register on stack
+000000BE:   923F        PUSH      R3             Push register on stack
+000000BF:   924F        PUSH      R4             Push register on stack
+000000C0:   925F        PUSH      R5             Push register on stack
+000000C1:   927F        PUSH      R7             Push register on stack
+000000C2:   92AF        PUSH      R10            Push register on stack
+000000C3:   92BF        PUSH      R11            Push register on stack
+000000C4:   930F        PUSH      R16            Push register on stack
+000000C5:   931F        PUSH      R17            Push register on stack
+000000C6:   932F        PUSH      R18            Push register on stack
+000000C7:   933F        PUSH      R19            Push register on stack
+000000C8:   934F        PUSH      R20            Push register on stack
+000000C9:   935F        PUSH      R21            Push register on stack
+000000CA:   936F        PUSH      R22            Push register on stack
+000000CB:   937F        PUSH      R23            Push register on stack
+000000CC:   938F        PUSH      R24            Push register on stack
+000000CD:   939F        PUSH      R25            Push register on stack
+000000CE:   93AF        PUSH      R26            Push register on stack
+000000CF:   93BF        PUSH      R27            Push register on stack
+000000D0:   93CF        PUSH      R28            Push register on stack
+000000D1:   93DF        PUSH      R29            Push register on stack
+000000D2:   93EF        PUSH      R30            Push register on stack
+000000D3:   93FF        PUSH      R31            Push register on stack
+000000D4:   B78F        IN        R24,0x3F       In from I/O location
+000000D5:   938F        PUSH      R24            Push register on stack
+000000D6:   B78B        IN        R24,0x3B       In from I/O location
+000000D7:   938F        PUSH      R24            Push register on stack
+000000D8:   2788        CLR       R24            Clear Register
+000000D9:   BF8B        OUT       0x3B,R24       Out to I/O location

Franks_Push:
+000000DA:   930F        PUSH      R16            Push register on stack
+000000DB:   938F        PUSH      R24            Push register on stack
+000000DC:   939F        PUSH      R25            Push register on stack
+000000DD:   93AF        PUSH      R26            Push register on stack
+000000DE:   93BF        PUSH      R27            Push register on stack
+000000DF:   93CF        PUSH      R28            Push register on stack
+000000E0:   93DF        PUSH      R29            Push register on stack
+000000E1:   93EF        PUSH      R30            Push register on stack
+000000E2:   93FF        PUSH      R31            Push register on stack
 


As one can see, R24 is not preserved by the PUSHALL statement. How interesting.

DISASSEMBLING:
I found the article about using AVR studio to disassembled code.
' https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=15283&highlight=obj
I gave up trying to get microchip studio 7.0 and downloaded Atmel AVR studio 4.19
So straightforward as described in the article.

 

 

 

Mags goes to the doctor

Magnus has been scratching, her tummy is red and there are little red welts on her tummy and her coat looks mangy.  Today visited a vet. 

Arundel Veterinary Surgery.  190 Brisbane Rd, LABRADOR QKD 4215 07 5529 0700

Weight 39kg
She received a couple of needles.
"Cephalexin 1000mg" tablets - used to treat pyoderma and other bacterial skin infections in dogs.
Pred-X 20mg x30 tablets -  An aid in the treatment of inflammatory rheumatic arthritic conditions, for the treatment of allergic dermatitis.
And a anti [intestinal] worm tablet.
And a bottle of medicated shampoo. Malaseb 250ml
Instructions: Wet the skin well. Apply the shampoo.  Work well into a thick foam.  Wait 10 minutes.  Rinse off. Towel dry.
Did not test for heart worm.

Home and gave her breakfast
500g mince.  Whole raw egg & half a tin of sardines

Around lunch time, gave her a shampoo.

Seems to be much less scratching.





Monday, December 30, 2024

Last Church 2024

This morning, I thought it would be nice to go to church.   Had a look on google Maps, and the closest was "Holy Catholic Family" at Runaway Bay. 

Blow me over, but it turns out Phoebe @18 was the model for Mary for the  stone mason - Tom Farrell -  who carved the statue out the front.


On the religious front,  Was a good service. A nice short sermon (<5minutes) on the importance of family and a recognition that not all families are good and we the church need to be willing to step in and step up.   A small choir that helped the rest of us know when to sing and when to listen and avoided those awkward solo's by a priest whose singing abilities are worse than mine.

 

 


 







Saturday, December 28, 2024

2024 Christmas Summary

23 DEC-2024 MONDAY

24-DEC-2024 CHRISTMAS EVE TUESDAY
My kids with me.  Phoebe's with her.
We all...
Walk up Mt Greville
Dinner at Phoebe's place.
It was very special for me that my kids were with me and that they interacted with Phoebe and her kids.

25-DEC-2024 CHRISTMAS DAY WEDNESDAY
Each of our kids were with our ex's.  So this is a nice balance in regard to making the best out of split families.  I understand that Chris, Dan and Jemma drove to Ian and Fay's place where Megan was already staying and they would have all had a Christmas day together.

Phoebe and I drove to Lota and visited Phoebe's dad.
Walk on the off lead beach near Royal Queensland Yacht Squadron.
Snooze at Highland Terrace.
Drinks with Graham and Mel at West End.

26-DEC-2024 THURSDAY BOXING DAY
Christmas day lunch at Phoebe's exes mothers place.
Drove down the gold coast.

27-DEC-2024 FRIDAY
House Sitting Geovana & Dan's place at Hollywell on the Gold Coast.
Visit to Harbourtown shopping centre.  "Newyork Cheescake" Ice-cream in a cone.
Watched "Love Actually" on netflix.
Walked Mags through the nearby dog park and past the yacht club.
Watched "Spy" on netflix.

28-DEC-2024 SATURDAY
Main Beach Park Run.  Swim at the spit.
Breakfast - Fried Eggs, Ham & Spinach.  Yet another cup of coffee. 

29-DEC-2024 SUNDAY
Church "Holy Catholic Family" at Runaway Bay.
Netflix, Swim & Chill:  "Winston" (About Winston Churchill)
Fish and Chips on the beach Harley Park LABRADOR.

30-DEC-2024 MONDAY

31-DEC-2024 TUESDAY (New Years Eve)


Park Run

 

Main Beach Gold Coast Park Run. More of a walk than a run as we are just getting back into it. Also trying to teach Mags how to not pull on the leash and to run on my left. By the end Mags was just a little tired.
We were Exhausted
Me tried to create a "before" happy pic but this was after the "run"
Mags was exhausted


 

 

Then up the spit to the off lead area so mags can have a run and a swim. I really like this place as it's the only place with off lead and flags so you can have kids and dogs, who naturally go together, swimming in a safish environment.

 

 

 

 

 

 

 

 

 

 

Christmas Eve - Dinner

 The Christmas festivities continued with a dinner at Phoebe's place.









Wednesday, December 25, 2024

Christmas Eve -Greville walk

CHRISTMAS EVE
3am put roast on high. 
6:00 depart Oxley. Coffee from maccas.
7:30 depart car park
9:30 snack. Elephants ear slab rock.
10:45 at the top.
1:45 back at car
1L water shared Phoebe, Fletch and myself. 
2:15 Aratula 2x600ml pumps for me and 1 each for Fletch and Phoebe.
2:45 dep aratula
3:45 home. 
Beef to low. 
4:00 beef to warm
Shower
Dress
Pack drinks.
5:00 depart
Buy 2 bags ice 
Dinner at Phoebe's place. 
Snooze on couch. 
12:10 midnight depart
12:30 last Christmas plays on 96.5
12:40 home. Bed 

WATER AND FOOD
We took too little of both. 
2L each for Frank, Fletch and Phoebe. Then after getting to the car park, we shared 1L and then at Aratula, I downed another 1.2L.
That's 3.5L for me. 
I think in future, I should budget 500ml per hr of the whole trip including lunch breaks plus 1L per person back at the car.
In this case, 6hr walk, I would have had to take 3L for me. 
Frozen 500ml bottles works well. 
FOOD
We only took (for 8 people)
Hard boiled eggs,
Muslie bars,
Bananas x 4
Apples x 4
Rum raisin chocolate 
And Tim tams.
Didn't realise how long the walk would take. 
Should have added just for me
2 sandwiches.
Next time irrespective of the estimated length, add those sandwiches
 
 
 
 
 
 
Frank, Phoebe, Fletch, Chris, Jemma, Amy, Zac, Dan.
 





























 

 
 
 
 
 

Sunday, December 22, 2024

Park Run

 Saturday 21-12-2024

7:00 AM park run.  This was mostly a walk.

First looking at an atlas to consider the pre Marcus & Sophie wedding.  Spending two or three weeks just touring Turkey is sounding like the go.  

Bought Christmas ham.

Washed Magnus as she is scratching a lot.  Used medicated shampoo but this has made no difference.










Tuesday, December 10, 2024

tue10 Dec LOW

Feeling a bit low. 
No logic to it. 
BGRC AGM
Got an award from BGRC for services to rowing. 
Bit of a software challenge at work. 
Nice row in a 4 this morning with cooky, 7 and crafty.
Lovely coffee with Phoebe this morning. 

Weekend was lovely with Phoebe 

So not sure why I'm feeling low. 
Often wonder why I get feeling flow. 
I wonder about others who always seem to have it together. 
 
I ponder why marriages fail.  why emotions go the way they do.  
communication.  feelings. 
forgiveness
how does one go from love through some kind of steady as she goes 
how do you get it back into some kind of love thing. passion. dates. 


Sunday, December 8, 2024

Sat7 Sun8

SATURDAY 7
5:30 Drove down the GC to take Mags to the off lead beach.
Breakfast in the form of a croissant Benny.
11:30 home.
Chris modding his Nissan. Heavy duty suspension. 
Over to Phoebe's and Fletch and I moved the washing machine upstairs and onto her verandah. 
6:30 Ben and Rachel's Christmas dinner. Beautiful but very rich food. 
Interesting they have a 16? Yo black cat with similar mannerisms to Oreo in that he liked to just be near the action and when we moved,  he'd move shortly after.

SUNDAY 8
A bit of a sleep in so no erg.
7am coaching. 
Dropped into Mt O.
Bought some shirts.
Poor mags had to stay in the car. 
Over to DFO. 
Phoebe went in to look for socks as presents for her gym coaches. I got Mags out and we ran across the carport so she wouldn't burn her feet. 
Snooze
2:30 collected Phoebe
3:00 Phoebe's gym Christmas party at the Normanby. 



Monday, December 2, 2024

4 agreements

1 Do not make assumptions 
2 Be impeccable with your word
3 Don't take anything personally 
4 Always do your best

Friday, November 29, 2024

last 3 for dinner

Chris Dan Jemma came to dinner. 
This is likely the last Thursday with Jemma before she jets off for a year of adventure. 
Dinner was:
Steak, onion, Mushrooms, 
Sweet Potato, 
Lettuce, tomato, cucumber.
I had a tin of beetroot but upon opening, it looked a bit odd. Not the bright purple colour. A bit purple grey. No taste.  Threw it out. 

Jem may have a delayed departure because she is waiting on the EU work permit. Combined with complexity of air tickets through a on line booking service. 




Wednesday, November 27, 2024

Lime issue

 LIME

call 1800 861 305 in Australia

as

aaa





Note that Lime ended the ride.

Note that they knew my ride was  "In Progress"

And then they sent a warning.
Frustration is that the map does not show the no parking zones until AFTER you start a ride.