Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Re: Re: Bumming Code

Originally posted by splashman
You're not rusty. No direct comparisons were possible.

Ah, the memories. I did a lot of hand-coding on my Apple ][ before assemblers came along. Big Mac seemed like an incredible innovation at the time, but compared to modern tools, it's a stone axe. I guess that dates me . . .

Ahh, yes the memories. I actually hand-assembled a working version of Tetris on the 6502.

I've got to say XCode is a hell of a lot more convenient :)

Can we get into one of those "You had assemblers, in my day we had to..." ;)
 
Re: Re: Re: Bumming Code

Originally posted by stcanard
Hmm, I didn't think the 6502 allowed direct comparisons between memory locations and constants. Didn't we always have to go through the accumlator or X/Y?

I must admit my 6502 assembly is a bit rusty though.

Loop:
LDA #$00 (A9 00)
BNE Loop (?? Don't remember BNE's code)

Should work and be even faster without the memory access!

LOOP:
LDA #$01
CMP #00
BNE LOOP

works just fine.

What you've done changes the meaning of my signature.
 
I went ahead and assembled the thing and photographed the display, just to finish this.
 

Attachments

  • pc190001.jpg
    pc190001.jpg
    20.7 KB · Views: 881
Re: Bumming Code

Originally posted by bousozoku
LOOP:
LDA #$01
CMP #00
BNE LOOP

works just fine.

What you've done changes the meaning of my signature.

I understand the meaning of your signature (lots of experience in 6502 machine code and assembler), and the above code makes perfect sense. But in your signature, the "move" command and the presence of ", D0" indicates it isn't 6502 code. So what is it? (just curious)
 
Re: Re: Bumming Code

Originally posted by splashman
I understand the meaning of your signature (lots of experience in 6502 machine code and assembler), and the above code makes perfect sense. But in your signature, the "move" command and the presence of ", D0" indicates it isn't 6502 code. So what is it? (just curious)

It's 68000, as is my rank currently. By no coincidence, I've been changing the code along with the rank.
 
Slow boot times

For those of you complaining about slow boot times, how about enabling verbose boot messages? That's done in open firmware and I lose that setting after each new rev of OS X, but don't do it enough to know it from memory.

In other words, look it up!

But what it does is show each step of the boot process. You may be able to see what is slowing down the process. This is UNIX after all! :)
 
slower startup

Run:
Code:
sudo nvram boot-args="-v"
... to set the verbose boot flag in Open Firmware or type command-v during reboot for a one-time verbose boot.

Last console output I see with a verbose reboot is ipfw (firewall) initialization, then there's about a 30-second delay after WindowServer launches and before loginwindow is active. Something like that. Before 10.3.2 some system startup items were apparently run after loginwindow was active.

Still not sure what changed (and why) but maybe this has something to do with it:
Code:
% cat /System/Library/CoreServices/WindowServer
#!/bin/sh
#
# TEMPORARY HACK til we have updated /etc/ttys and SystemStarter resources
#
# See Radar 3221126.
#
exit 0
I think that file's new (or at least changed) in 10.3.2 but I don't have an older system to check for it.
 
PowerBook Fan Easy Fix

I created a little installer to automate the fix process for the 12" Rev. A PowerBook's fan 'problem'. Use at your own risk, haven't heard of any problems with it. Please report back with the good and the bad:

Silent Night 1.0

Enjoy!

Silence is Golden
 
Re: slower startup

Originally posted by sjk
Still not sure what changed (and why) but maybe this has something to do with it:
Code:
% cat /System/Library/CoreServices/WindowServer
I think that file's new (or at least changed) in 10.3.2 but I don't have an older system to check for it.

The file's the same in 10.3.1. Looks like parts of the OS still aren't ready for Darwin 7...
 
Re: Re: slower startup

Originally posted by lewellyn
The file's the same in 10.3.1. Looks like parts of the OS still aren't ready for Darwin 7...
Thanks for checking. Then it seems /System/Library/CoreServices/WindowServer exists in the original 10.3 distribution (my Jaguar installer CD is having trouble mounting so I can't check) since it's not in 10.3.1's bom file. But it shows up in 10.3.2 which is why I thought it had changed if it's not new in 10.3.2.
 
Originally posted by Powerbook G5
Has 10.3.2 really been pulled? I hope if they do that they work on the performance problems that some of us are having, I feel as if my computer is running on reduced processor speed when it is in fact set to highest.

how would i set my computer to run to its highest processor speed? I am running 10.3.2 DP 1.42 1.5GB RAM.
thanks
 
Originally posted by Powerbook G5
Go to Energy Saver in System Preferences and click on the Options tab, there is a pull down menu where you can select the processor/bus speed setting.

thanks for the help, but that setting is for ibooks and pb only. oh well. hopefully mine is automatically running at its max speed.
 
w00t, substantial Increase in performance of Halo on a 1.25GHz Powerbook! Extra 10fps Average fps.

Went from 27fps with Vertex shaders @ 1280 x 854 with most settings on to 36fps with the same settings! How cool is that!

Must be those new ATI drivers!
 
Originally posted by Powerbook G5
It should work for desktops, too. I know it has a substantial effect on the performance of the G5 systems, which are desktops.

i just checked the mac help and it said if your powerbook ibook or powermac g5 isnt running to its full potential then change. so i guess that means mine is running as fast as it can... i hope. thanks
 
Re: Re: Re: Re: Bumming Code

Originally posted by bousozoku
LOOP:
LDA #$01
CMP #00
BNE LOOP

works just fine.

What you've done changes the meaning of my signature.

Which means what?
 
Re: Re: Re: Re: Re: Re: Bumming Code

Originally posted by bousozoku
1 Infinite Loop. Is that enough of a clue? :)

Then why add the unnecessary cruft?

moveq #1,d0
loop:
bra loop


or

one:
bra one


and be done with it
 
Re: Re: Re: Re: Re: Re: Re: Bumming Code

Originally posted by nteragator
Then why add the unnecessary cruft?

moveq #1,d0
loop:
bra loop


or

one:
bra one


and be done with it

Why flog a dead horse?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.