The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. February 12, 2012, 05:01:28 PM

Login with username, password and session length


Pages: 1 2 [3] 4
  Print  
Author Topic: Windows 7? Don't Upgrade, Buy A New PC...  (Read 2412 times)
perkiset
Olde World Hacker
Administrator
Lifer
*****
Online Online

Posts: 9792



View Profile
« Reply #30 on: October 20, 2009, 12:27:19 PM »

@RC - Whoa... you mean you were one of those that preferred A5 00 20 to LDA $2000?

(Cripes I can't even believe that I can pull the code for a load-the-accumulator out'my ass after this long)

I actually started with pure machine on 6502 because there wasn't a publicly available assembler ... then when I got a mini assembler and could simply enter the mnemonics and data segments I was REALLY happy and started to move a lot faster.

Just for giggles I went to one of my old resources (6502.org) and looked up some old code. I love this stuff Here's an example of how to clear memory, and a version that runs "faster" - bear in mind that, if I remember correctly, a DEX, DEC or DEY took one cycle MAYBE two ... so when they're talking faster, we're really, really talking about machine optimization here...

Quote
TOPNT is a successive pair of memory locations set up on page zero. It will be used as storage for a temporary pointer. The low portion of the address stored in TOPNT is stored in the lower addressed byte and the page portion is stored in the next higher byte.

CLRMEM  LDA #$00        ;Set up zero value
        TAY             ;Initialize index pointer
CLRM1   STA (TOPNT),Y   ;Clear memory location
        INY             ;Advance index pointer
        DEX             ;Decrement counter
        BNE CLRM1       ;Not zero, continue checking
        RTS             ;Return

Mickael Pointier suggests an alternative method that saves one free register and runs a bit faster since you no longer have to increment one of the registers:


CLRMEM  LDA #$00        ;Set up zero value
CLRM1   DEY             ;Decrement counter
        STA (TOPNT),Y   ;Clear memory location
        BNE CLRM1       ;Not zero, continue checking
        RTS             ;RETURN


I forgot how much I dug that language. Smiley
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
rcjordan
Lifer
*****
Offline Offline

Posts: 877


View Profile
« Reply #31 on: October 20, 2009, 12:32:35 PM »

All I can remember is 0800 = Null

<added>
This was Burroughs machine code, btw.

<added2>
>load-the-accumulator

Man, it's been a loooong time since I've thought of the damn 'accumulator'
« Last Edit: October 20, 2009, 12:39:09 PM by rcjordan » Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Online Online

Posts: 9792



View Profile
« Reply #32 on: October 20, 2009, 12:37:38 PM »

EA, (NOP) in 6502.

Just found the entire instruction set, what a hoot. Talk about memories Smiley

http://www.atariarchives.org/mlb/appendix_a.php

Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
isthisthingon
Global Moderator
Lifer
*****
Offline Offline

Posts: 2868



View Profile
« Reply #33 on: October 20, 2009, 12:46:55 PM »

Macros Deep Dive

In the hopeful beginning Nerd
The brick wall of limitations and monotony end the "honeymoon"
After much wailing and gnashing of teeth, feelings of failure set in Cry
The final stage - reaching out to the Administrative Office Assistant who works macros like a pro Need Help

Formulas and macros force muscle memory retention that I've always hated giving up to such a lame set of high-levels 
Logged

I would love to change the world, but they won't give me the source code.
rcjordan
Lifer
*****
Offline Offline

Posts: 877


View Profile
« Reply #34 on: October 20, 2009, 01:07:38 PM »

I'll break down and write a macro in ultraedit fairly often. What ALWAYS pisses me off is that I know I've written the same damn macro before but when you need it again it's easier to code it up than go find the earlier version.
Logged
vsloathe
vim ftw!
Global Moderator
Lifer
*****
Offline Offline

Posts: 1669



View Profile
« Reply #35 on: October 20, 2009, 01:20:30 PM »

cat, awk, sed, grep

GUIs and macros and other such obfuscations are if you just REALLY want to do something the hard way. Seriously. It's much harder to have to learn all this bullshit than just grepping a man page.

 
Logged

hai
isthisthingon
Global Moderator
Lifer
*****
Offline Offline

Posts: 2868



View Profile
« Reply #36 on: October 20, 2009, 01:46:18 PM »

Do you remember a certain geek that worked with us circa '90 that thought assembly was easy and excel macros were hard? Similar disease  ROFLMAO

You mean that geek that was smarter than both of us with 1/2 his brain tied behind his back? Wink  Yep.  He's actually the one who gave me the Jesus Hammer Time link recently.

Also - were you with us in the mid 80s when we had a client that had all Macs in the office, and they all loved it except one of the analysts that simply could not get her arms around "these charts and graphs?" "Give me a row of numbers" she would say "and I can make sense of it. But charts just confuse me."

She was retarded ROFLMAO
Logged

I would love to change the world, but they won't give me the source code.
isthisthingon
Global Moderator
Lifer
*****
Offline Offline

Posts: 2868



View Profile
« Reply #37 on: October 20, 2009, 01:49:46 PM »

Quote
I actually started with pure machine on 6502 because there wasn't a publicly available assembler

I thought the Hayden compiler took care of that, or perhaps it was C.  It hurts trying to remember that far back!
Logged

I would love to change the world, but they won't give me the source code.
perkiset
Olde World Hacker
Administrator
Lifer
*****
Online Online

Posts: 9792



View Profile
« Reply #38 on: October 20, 2009, 02:04:26 PM »

no I'm talking way way back, around '78.

Wrote a game on the Apple ][, "Simon" that emulated the round memory game. It divvied the screen into 4 quadrants and played a tone and "turned on a light" in sequence and you had to remember it. There was a math teacher from UCI that helped me with it because, at that time, assembly and machine were just WAY beyond me. At that time, you did (something, I don't remember what) and it converted the Basic prompt into a machine prompt. You could "L" to list the current page of memory or enter codes that would be put into memory. The mini assembler was available to me probably closer to '80, '81. That's when I did the flicker-free graphics bit - you may remember also that the big game of the day was "Sneakers" that demo'd the first REAL graphics effort on the machine.

Jeez, am I going down memory lane. I need to get back to work  Nerd
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
isthisthingon
Global Moderator
Lifer
*****
Offline Offline

Posts: 2868



View Profile
« Reply #39 on: October 20, 2009, 02:07:08 PM »

FP switched to Floating Point Basic mode and INT gave you Integer Basic Wink

Long live Sneakers

(bigger ship poops out smaller ship.  Rinse and repeat...)
Logged

I would love to change the world, but they won't give me the source code.
perkiset
Olde World Hacker
Administrator
Lifer
*****
Online Online

Posts: 9792



View Profile
« Reply #40 on: October 20, 2009, 02:12:12 PM »

LOL I remember that part ... it was how to get from basic into machine ... bin? B? dunno. MAN is that like a million years ago...
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
rcjordan
Lifer
*****
Offline Offline

Posts: 877


View Profile
« Reply #41 on: October 20, 2009, 02:38:48 PM »

>to get from basic into machine

At Burroughs, I vaguely recall having the assembler generate a paper tape. Then you loaded the target machine via that tape.

That was a PITA and slow and you always had to go back and debug -and that usually led you to the machine code to see what the assembler was doing.  Or, you could cut out the middleman and just go in and directly enter the machine code.
Logged
isthisthingon
Global Moderator
Lifer
*****
Offline Offline

Posts: 2868



View Profile
« Reply #42 on: October 20, 2009, 03:32:12 PM »

LOL I remember that part ... it was how to get from basic into machine ... bin? B? dunno. MAN is that like a million years ago...

BIN if I recall correctly.  All caps at 40 chars on a green screen?  Who's idea was THAT ROFLMAO  Even the trash-80 had... 80.
Logged

I would love to change the world, but they won't give me the source code.
perkiset
Olde World Hacker
Administrator
Lifer
*****
Online Online

Posts: 9792



View Profile
« Reply #43 on: October 20, 2009, 03:36:55 PM »

Well yeah, but it was, um, trash.
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
kurdt
Lifer
*****
Offline Offline

Posts: 1153


paha arkkitehti


View Profile
« Reply #44 on: October 20, 2009, 09:54:07 PM »

Quote
At Burroughs, I vaguely recall having the assembler generate a paper tape. Then you loaded the target machine via that tape.
Shit I feel so young here. I started using computers in the 8" disk era but it was soon replaced with 3.5". Then my father used to drill holes into the corners to make them double the size or something. Now that I think about it.. wtf was that all about Cheesy
Logged

I met god and he had nothing to say to me.
Pages: 1 2 [3] 4
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!