SV650.org - SV650 & Gladius 650 Forum



Idle Banter For non SV and non bike related chat (and the odd bit of humour - but if any post isn't suitable it'll get deleted real quick).
There's also a "U" rating so please respect this. Newbies can also say "hello" here too.

Reply
 
Thread Tools
Old 31-01-06, 11:04 AM   #21
mysteryjimbo
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by TSM
When i was in collage about 7 years ago now, they did teach assembly basics on a Zilog Z80 proc. The teacher was sooo boring. But i liked it, just did not have a unit of my own to play with. I much prefered the teacher that did Pascal. Still i not good at either. Now im better in the modern languages.
I got pretty good at Turbo Pascal and assembler in college but now moved away from programming and into DB's.
  Reply With Quote
Old 31-01-06, 11:45 AM   #22
tricky
Guest
 
Posts: n/a
Default

I was using these (Aim 65) in 1986 and I'm guessing they where probably obselete then.
I once got one to play "Layla" by connecting an amp and a speaker up to it, and varying the frequency on two pins of the serial port (or somthing like that, it was 20 years and about 1200 gallons of beer ago)

I quite liked programming in assember, 68k mainly as I was quite good at that and absoulute crat at progaramming in everything else.

I do a bit of ksh scripting now which I'm not bad at, if you can count that as programming.
  Reply With Quote
Old 31-01-06, 12:04 PM   #23
Skip
Member
Mega Poster
 
Skip's Avatar
 
Join Date: Feb 2005
Location: Norfolk
Posts: 3,151
Default

Quote:
Originally Posted by tricky
I do a bit of ksh scripting now which I'm not bad at, if you can count that as programming.
To someone who uses other peoples ksh scripts (me!) - yes it is programming as I couldnt do it!!
__________________
'81 Honda H100A
'18 Honda MSX125 (Grom)
Skip is offline   Reply With Quote
Old 31-01-06, 12:13 PM   #24
tricky
Guest
 
Posts: n/a
Default

***********************GEEK ALERT***********************************
I wrote this in the hope it would be the last one I ever wrote.
I've removed the comments, see if you can work out what it does.


#!/usr/bin/ksh

main () {
for ball in 1 2 3 4 5 6
do
generate
numbers[$ball]=$num
done
}

generate () {
num=`echo $RANDOM | cut -c 2,3`
check
if [ $num -eq 0 -o $num -gt 49 ]
then
generate
fi
}

check () {
echo ${numbers[*]} | grep $num >> /dev/null 2>&1
rc=$?
if [ $rc -eq 0 ]
then
generate
fi
}

sortball () {
count=1
while [ $count -le 6 ]
do
for pos in 1 2 3 4 5
do
((nextpos=$pos+1))
if [ ${numbers[$pos]} -gt ${numbers[$nextpos]} ]
then
numbers[7]=${numbers[$pos]}
numbers[$pos]=${numbers[$nextpos]}
numbers[$nextpos]=${numbers[7]}
fi
done
((count=$count+1))
done
}

display () {
for ball in 1 2 3 4 5 6
do
echo "Ball $ball = ${numbers[$ball]}"
done
}

clear
main
sortball
display
  Reply With Quote
Old 31-01-06, 12:15 PM   #25
Skip
Member
Mega Poster
 
Skip's Avatar
 
Join Date: Feb 2005
Location: Norfolk
Posts: 3,151
Default

Very good!

I take it that it hasnt been the last one you ever wrote??!

Oh and in case anyone is wondering - its a Lottery Number Generator
__________________
'81 Honda H100A
'18 Honda MSX125 (Grom)
Skip is offline   Reply With Quote
Old 31-01-06, 12:19 PM   #26
sharriso74
Guest
 
Posts: n/a
Default

I was going to say bingo
  Reply With Quote
Old 31-01-06, 12:20 PM   #27
TSM
The Sick Man
Mega Poster
 
TSM's Avatar
 
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
Default

Quite a simple prog realy. Not as if i could write it in KSH, i would do it in ASP.
__________________
OTR: KTM 690 Duke R 2015 Full Akro
SIDELINE: Kwak ZX636 A1P 2002, Red, R&G's, Yoshi, Double Bubble Screen
GONE: Kwak ZX-7R P1, Full Akro, Undertray, Screen
GONE: SV650S K2 Very Bruised & Without Fairing, Motovation Frame Sliders, R&G Ally Sprocket Toe Protector, HEL 2 Line Setup, GSXR K1 600 RWU Forks, Barnett Clutch & Springs, Penske 8981 Shock, Gilles Ti Rearsets, Steel Barends, Scottoiler, AFAM Chain & Sprockets, Twin FIAMM Horns, Skidmarx Bellypan, Full Micron Zeta Steel System, Cut down undertay.

Forum Problems & Information / Site Suggestions
TSM is offline   Reply With Quote
Old 31-01-06, 02:27 PM   #28
northwind
Moderator
Mega Poster
 
northwind's Avatar
 
Join Date: Jan 2004
Location: In the garage where I belong
Posts: 17,083
Default

I've got a rubber keyed Speccy and a Vic 20 somewhere...
__________________
"We are the angry mob,
we read the papers every day
We like what we like, we hate what we hate
But we're oh so easily swayed"
northwind is offline   Reply With Quote
Old 31-01-06, 04:02 PM   #29
tricky
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by northwind
I've got a rubber keyed Speccy and a Vic 20 somewhere...
I had a rubber keyed Speccy 48, those where the days.
Jet Pac, Manic Miner, Trans Am, Attic Attack etc

  Reply With Quote
Old 31-01-06, 04:04 PM   #30
DanDare
Guest
 
Posts: n/a
Default

Who had one of these then???????

http://www.inthe80s.com/toys/bigtrak.shtml
  Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
First fall - and on a lesson nik_nunez Bikes - Talk & Issues 13 08-07-08 08:59 AM
teaching them a lesson Wideboy Bikes - Talk & Issues 9 08-09-07 08:49 PM
Another day, another lesson veraliar SV Talk, Tuning & Tweaking 0 02-07-07 10:55 PM
History lesson cuffy Idle Banter 2 10-03-06 12:17 PM
History lesson part one Stingo Idle Banter 4 23-02-06 01:04 PM


All times are GMT. The time now is 01:56 PM.


Powered by vBulletin® - Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.