English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 19 September 2005, 02:38   #1
Ray Norrish
Registered User
 
Ray Norrish's Avatar
 
Join Date: May 2005
Location: Cheshire, UK
Age: 56
Posts: 322
Bizarre coding tricks

Just a curiouso, but I remember coding a LED trick that, using timers, made the LED fade out, rather than switch off. (This don't work in WinUAE )

I also made some code to do the same thing with the drive light, although people might not like it on real hardware, as this was a bit hectic on the drive motor.

Thing is, I also remember some coding trick where someone did a routine to play 1 channel music on the drive stepper motor.. anyone else remember this?

Today, I found out about the c64 demo where you have to "lick" the joystick port to activate some dubious animation.


Anyone know of any similar outlandish hardware coding tricks from the old days? Would be interesting!
Ray Norrish is offline  
Old 19 September 2005, 06:04   #2
demoniac
Registered User
 
Join Date: Jul 2005
Location: -
Posts: 1,696
Years ago during a hardware, academic project, I inquired if there was a way to turn the Caps Lock LED on/off via software.

However, Andy Finkel had an interesting insight to the A1000 design...

Quote:
The answer is no. The data link between the keyboard and the Amiga is
basically one way, keyboard to Amiga; while a bidirectional interface is
possible, it would have required using different parts for the communications
link. We (some of the software guys) wanted it back in the pre-A1000 days,
but we couldn't come up with enough justifications to overcome the cost
issues.

andy
Koljonen Kari-Pekka responded that...

Quote:
Some years back inspired by Odyssey's caps lock flasher I decided to try
it out myself.

I don't remember the exact procedure very well, but it went something like
this (I used A500).

There is a direction flag in some cia register. Normally it states that
the keyboard is sending data. I switched this flag to the opposite
position and wrote the raw caps lock code to the keyboard data register
(was it $bfec01). The caps lock led turned on and after a while turned
off by itself.

Speaking of led flashing, a friend of mine did a power led/drive led
flasher (also years back with A500) with lot's of different shades of
red/green/whatever color the leds were.

--
/K-P Koljonen -- Hippopotamus Design
I don't exactly remember why I wanted to do that w/ the Caps Lock LED in the first place...

I think it was to going to be used for identicating when my homebrewed freezer device was ready.

Last edited by demoniac; 20 September 2005 at 01:44.
demoniac is offline  
Old 19 September 2005, 10:30   #3
mr_0rga5m
Tik Gora :D
 
mr_0rga5m's Avatar
 
Join Date: Oct 2001
Location: Round yo momma's
Posts: 1,273
Quote:
Originally Posted by Ray Norrish
Thing is, I also remember some coding trick where someone did a routine to play 1 channel music on the drive stepper motor.. anyone else remember this?

Yea .. i remember these .. (even mentioned it here & here before) .. cool routines .. ingenious tricks

i'm sure there was more tunes than daisy daisy tho ...

Again with the LEDs i remember it happening quite a lot on the C64 .. Drive LEDs pulsing along to demos tracks etc.. But i dont remember seeing it on the Amiga ? ... (Unless i did but just thought crap ive seen this on a c64 years back )
mr_0rga5m is offline  
Old 19 September 2005, 11:47   #4
bobbybearing
Zone Friend
 
bobbybearing's Avatar
 
Join Date: Oct 2003
Location: France
Age: 51
Posts: 161
yes, fade LED is cool, but work fine only on A500
(see Silents Demon Download boot)

Code:
fadeledOff
move.w #300,d2
move.w #0,d3
move.w #1,d1
bra.s fade

fadeledOn
move.w #0,d2
move.w #300,d3
move.w #-1,d1

fade
move.w d2,d0
bmi.s end
.loopoff
bclr #1,$bfe001
dbf d0,.loopoff

move.w d3,d0
bmi.s end
.loopon
bset #1,$bfe001
dbf d0,.loopon

add.w d1,d3
sub.w d1,d2
bra.s loop
end rts
the Caps Lock Led crash on A1200 ! (see Alcratraz Odyssey)

for a music with drive motor, it's "GuruMusic" (see this post)
bobbybearing is offline  
Old 19 September 2005, 17:41   #5
Steve
I Identify as an Ewok
 
Steve's Avatar
 
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
Cool

Quote:
Originally Posted by Ray Norrish
Just a curiouso, but I remember coding a LED trick that, using timers, made the LED fade out, rather than switch off.
The LED flasing trick can be coded by using bit 1 of the CIA register.
Check out this thread: http://eab.abime.net/showthread.php?t=9950
Steve is offline  
Old 20 September 2005, 00:29   #6
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,004
Spook of Digital used the CAPS Lock led trick on The Punisher demo, alas because of this, it crashed on A12oo's.

I do remember some buffoon magazine reviewer commenting on piracy, and how all cracked games had viruses, and that sometimes the 'stupid' crackers would 'screw around' with the Power LED whilst a game was decrunching, and they were clearly 'banging the hardware'! Dullard... it was also the Audio filter!
Galahad/FLT is offline  
Old 01 January 2006, 17:43   #7
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,606
Quote:
Originally Posted by Ray Norrish
Just a curiouso, but I remember coding a LED trick that, using timers, made the LED fade out, rather than switch off. (This don't work in WinUAE )
I believe the demo group Powerdrive was the first to fade LEDs on Amiga (A500). It would have been around '89-'90.
Photon is online now  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Amigas Most Bizarre Games Steve Nostalgia & memories 128 22 October 2017 22:30
Protracker 2.3 bizarre behaviour with icon andrezp support.Apps 11 11 December 2010 20:53
Bizarre CD32 SX-1 Expansion Question imstarryeyed support.Hardware 10 12 March 2010 17:28
How was it done? (helping understand the coding tricks) Shoonay Coders. General 25 05 May 2009 04:14
Bizarre problem on boot up Steve support.Hardware 42 02 October 2003 01:04

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


All times are GMT +2. The time now is 12:33.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07711 seconds with 13 queries