CPCWiki forum

General Category => Programming => Topic started by: Nicholas Hill on 14:12, 26 April 12

Title: Programming Challenge: Write a BASIC program that will break an emulator
Post by: Nicholas Hill on 14:12, 26 April 12
Hey all,

I'm completely new to this forum, but I'd like to start by saying hello! My name is Nick, and I was gifted a CPC 464 for my sixth birthday. I am now 28 years old and doing quite well as a software engineer, so it's fair to say the CPC had an impact on my life!

So, I thought I would present a BASIC programming challenge, because I am genuinely interested in BASIC programming tricks. This one is simple to phrase: Can anyone write the shortest BASIC program that will "break" (or simply not work) in an emulator, because no emulator is perfect? I can think of two sensible rules for keeping out the "obvious" answers:

* Don't look for something set by the emulator. IE: Don't look for the data byte modified by emulators to identity themselves.
* Try to use minimal machine code. Preferably, use none at all.

I would very much like to see the results!

Nick
Title: Re: Programming Challenge: Write a BASIC program that will break an emulator
Post by: TFM on 19:16, 26 April 12
One would need few simple OUT instructions  8)
Title: Re: Programming Challenge: Write a BASIC program that will break an emulator
Post by: Devilmarkus on 20:06, 26 April 12
Yes... OUT some bullshit to the CRTC registers can harm some emulators :D
Title: Re: Programming Challenge: Write a BASIC program that will break an emulator
Post by: TFM on 01:21, 27 April 12
And some even provide the feature to do DOS commands of the PC ;-)
Title: Re: Programming Challenge: Write a BASIC program that will break an emulator
Post by: Executioner on 03:52, 28 April 12
Quote from: TFM/FS on 01:21, 27 April 12
And some even provide the feature to do DOS commands of the PC ;-)

Err, not from BASIC
Title: Re: Programming Challenge: Write a BASIC program that will break an emulator
Post by: TFM on 19:40, 28 April 12
Quote from: Executioner on 03:52, 28 April 12
Err, not from BASIC

Oh yes!!! But not in Winape.
Powered by SMFPacks Menu Editor Mod