Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

poke 36879,8

Thread Tools
 
Search this Thread
 
Old 04 January 2003, 01:22 PM
  #1  
stevencotton
Scooby Regular
Thread Starter
 
stevencotton's Avatar
 
Join Date: Jan 2001
Location: behind twin turbos
Posts: 2,710
Likes: 0
Received 1 Like on 1 Post
Post

Well you can't use just any keyword, if the parser is expecting more parameters for a certain keyword you'll just get a flashing '?'. RUN USR <num> is how you execute machine code routines, so starting the ROM at location 0 restarts the machine.

Just editing my bad code


[Edited by stevencotton - 4/1/2003 1:24:51 PM]
Old 31 March 2003, 05:02 PM
  #2  
beemerboy
Scooby Regular
 
beemerboy's Avatar
 
Join Date: Sep 2002
Location: Essexville
Posts: 4,391
Likes: 0
Received 0 Likes on 0 Posts
Post

anyone else remember any useless code from bygone days???

BB
Old 31 March 2003, 05:17 PM
  #3  
MattW
Scooby Regular
 
MattW's Avatar
 
Join Date: Jun 2001
Posts: 8,021
Likes: 0
Received 0 Likes on 0 Posts
Wink

Forgotten most of it now.....but why did you get taught PASCAL in school. Does anyone use it commercially?
Old 31 March 2003, 05:26 PM
  #4  
SiCotty
Scooby Regular
 
SiCotty's Avatar
 
Join Date: Jan 2001
Posts: 442
Likes: 0
Received 0 Likes on 0 Posts
Post

I though Delphi was based upon PASCAL

Si
Old 31 March 2003, 05:26 PM
  #5  
Mr.Cookie
Scooby Regular
 
Mr.Cookie's Avatar
 
Join Date: Apr 2000
Location: www.mrcookie.co.uk
Posts: 5,757
Likes: 0
Received 0 Likes on 0 Posts
Post

10 input "what is your name" a$
20 if a$="bob" goto 40
30 got 10
40 print "hi BOB how are ya!!!!"

and to think i never got a job in it
Old 31 March 2003, 05:31 PM
  #6  
MattW
Scooby Regular
 
MattW's Avatar
 
Join Date: Jun 2001
Posts: 8,021
Likes: 0
Received 0 Likes on 0 Posts
Smile

AAAAAAAAAAAAAAAAAAAAAH! Sin of all sins the GOTO statement

Si - Don't know Delphi, can't understand why they don't teach c though.
Old 31 March 2003, 05:58 PM
  #7  
camk
Scooby Regular
 
camk's Avatar
 
Join Date: Mar 2000
Posts: 1,764
Likes: 0
Received 0 Likes on 0 Posts
Post

altered go to in COBOL, how mental were they, code that changes the route of the code...aaarrrrrgggghhhh
Old 31 March 2003, 06:26 PM
  #8  
STi-Frenchie
Scooby Regular
 
STi-Frenchie's Avatar
 
Join Date: Sep 2002
Location: French side of the border at Geneva, Switzerland
Posts: 5,703
Likes: 0
Received 0 Likes on 0 Posts
Post

Mr Cookie - not surprised you didn't get a job programming - syntax error line 30
Old 31 March 2003, 06:28 PM
  #9  
what would scooby do
Scooby Senior
 
what would scooby do's Avatar
 
Join Date: Aug 2002
Location: 52 Festive Road
Posts: 28,311
Likes: 0
Received 0 Likes on 0 Posts
Post

I used to get kicked out of shops by doing

10 cls
20 print "xxxx is sh1te" (where xxx is name of shop)
30 goto 20

my programming has nver been as sophisticated since.. LOL
Old 31 March 2003, 06:40 PM
  #10  
jbryant
Scooby Regular
 
jbryant's Avatar
 
Join Date: Feb 2000
Posts: 1,082
Likes: 0
Received 0 Likes on 0 Posts
Post

POKE 53280,x
POKE 53281,y

Changes the foreground (x) and background (y) colour of your screen on a C64.

Yikes how did I remember that!!!!!

Joolz
Old 31 March 2003, 06:51 PM
  #11  
Mr.Cookie
Scooby Regular
 
Mr.Cookie's Avatar
 
Join Date: Apr 2000
Location: www.mrcookie.co.uk
Posts: 5,757
Likes: 0
Received 0 Likes on 0 Posts
Post

hey STi-Frenchie it's microsoft code
Old 31 March 2003, 07:03 PM
  #12  
Neil Smalley
Scooby Senior
 
Neil Smalley's Avatar
 
Join Date: Feb 2000
Posts: 8,204
Likes: 0
Received 0 Likes on 0 Posts
Post

Pop quiz, What did rnd usr(0) do on a spectrum?

Easy one
Old 31 March 2003, 07:08 PM
  #13  
stevencotton
Scooby Regular
Thread Starter
 
stevencotton's Avatar
 
Join Date: Jan 2001
Location: behind twin turbos
Posts: 2,710
Likes: 0
Received 1 Like on 1 Post
Post

Pascal was taught because one of the things it teaches you to do is design your program before you start coding.
Old 31 March 2003, 07:27 PM
  #14  
DemonDave
Scooby Regular
iTrader: (13)
 
DemonDave's Avatar
 
Join Date: Jan 2001
Location: Midlands - between notts and derby !
Posts: 4,997
Likes: 0
Received 0 Likes on 0 Posts
Talking

and nobody has come back with peek !!!!
Old 31 March 2003, 07:32 PM
  #15  
ChristianR
Scooby Regular
iTrader: (1)
 
ChristianR's Avatar
 
Join Date: May 2001
Location: Europe
Posts: 6,329
Likes: 0
Received 1 Like on 1 Post
Post

never had a spectrum, I had a C64!
Old 31 March 2003, 07:49 PM
  #16  
ChrisB
Moderator
 
ChrisB's Avatar
 
Join Date: Dec 1998
Location: Staffs
Posts: 23,573
Likes: 0
Received 0 Likes on 0 Posts
Post

My TI99/4A had VCHARs and stuff.

Them were the days!

I got taught Pascal at Collge & Uni on the basis that it was a good structured language to encourage good programming.
Old 31 March 2003, 07:50 PM
  #17  
AndyC_772
Scooby Regular
iTrader: (2)
 
AndyC_772's Avatar
 
Join Date: Mar 2001
Location: Swilling coffee at my lab bench
Posts: 9,096
Likes: 0
Received 0 Likes on 0 Posts
Wink

USR(0) caused the Spectrum to reboot.

(Collects coat)
(Leaves)
Old 31 March 2003, 07:57 PM
  #18  
Hanslow
Scooby Regular
 
Hanslow's Avatar
 
Join Date: Mar 2001
Location: Derbyshire
Posts: 4,496
Likes: 0
Received 0 Likes on 0 Posts
Cool

Totally sad as my missus tells me, but, 6031769 is the level skip code for Manic Miner on the Speccy. You then hold down 6 and make binary patterns with the other number keys to select the level.....

If only I could remember half my passwords as well

Oi! Who has nicked my coat!


[Edited by Hanslow - 3/31/2003 8:58:52 PM]
Old 31 March 2003, 08:17 PM
  #19  
stevencotton
Scooby Regular
Thread Starter
 
stevencotton's Avatar
 
Join Date: Jan 2001
Location: behind twin turbos
Posts: 2,710
Likes: 0
Received 1 Like on 1 Post
Post

RANDOMIZE USR 0 in fact
Old 31 March 2003, 09:00 PM
  #20  
Sheepsplitter
Scooby Regular
 
Sheepsplitter's Avatar
 
Join Date: Nov 2001
Posts: 1,072
Likes: 0
Received 0 Likes on 0 Posts
Thumbs up

beemerboy: Blimey, I remember that, it was for setting the screen and border colour.

Personally my fave is:-

21 00 00
C9

Which is Z80 for
LD HL,0000
RET


I know it's sad, but I used to have to program real time systems in machine code and I can remember most of the op-codes even now.
Old 31 March 2003, 09:15 PM
  #21  
rik1471
Scooby Regular
 
rik1471's Avatar
 
Join Date: Nov 2001
Posts: 4,788
Likes: 0
Received 0 Likes on 0 Posts
Post

This forum has just sunk to new levels of geekiness
Old 31 March 2003, 09:57 PM
  #22  
PiNkEyE69
Scooby Regular
 
PiNkEyE69's Avatar
 
Join Date: Apr 2002
Posts: 3,838
Likes: 0
Received 0 Likes on 0 Posts
Post

I used to have the old Spectrum Multiface 3 which allows you to POKE

I remeber deleted an old school teachers work by mistake on the BBC and with a mate replace it with
10 print "i love s*x"
20 goto 10
run

Old 31 March 2003, 10:04 PM
  #23  
BoxerFlat4
Scooby Regular
 
BoxerFlat4's Avatar
 
Join Date: Nov 2001
Location: N Wales
Posts: 923
Received 0 Likes on 0 Posts
Post

Well, I still remember some of the Z80 opcodes I used to hand assemble on my old Spectrum ....

201 = RET etc etc...

Old 01 April 2003, 05:42 AM
  #24  
Sheepsplitter
Scooby Regular
 
Sheepsplitter's Avatar
 
Join Date: Nov 2001
Posts: 1,072
Likes: 0
Received 0 Likes on 0 Posts
Post

BoxerFlat4: Ha, real men code in hex. LOL.
Old 01 April 2003, 08:25 AM
  #25  
GaryK
Scooby Regular
 
GaryK's Avatar
 
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes on 0 Posts
Cool

BB,
<sad muppet mode>
Even sadder if memory serves me right 36879 was used on the vic20 to set either the foreround or background colour? Am I right, do i get I prize, do I, do I??? </sad muppet mode>

Good old zx81 basic you couldnt beat it back in the day!

Gary
Old 01 April 2003, 09:47 AM
  #26  
beemerboy
Scooby Regular
 
beemerboy's Avatar
 
Join Date: Sep 2002
Location: Essexville
Posts: 4,391
Likes: 0
Received 0 Likes on 0 Posts
Post

gark K... go top of the class mate

you are right indeedy

poke 38679,8 sets the border to black, and the screen to black!!

LOL

what about this one...
10 print chr$(141)"hello"
20 print chr$(141)"hello"

i'll give you a clue....
no i wont...
ok the clue is ... a typical 1984 school PC...


BB
Old 01 April 2003, 10:15 AM
  #27  
BoxerFlat4
Scooby Regular
 
BoxerFlat4's Avatar
 
Join Date: Nov 2001
Location: N Wales
Posts: 923
Received 0 Likes on 0 Posts
Post

BBC Micro ?

Old 01 April 2003, 10:23 AM
  #28  
beemerboy
Scooby Regular
 
beemerboy's Avatar
 
Join Date: Sep 2002
Location: Essexville
Posts: 4,391
Likes: 0
Received 0 Likes on 0 Posts
Post

check out the big brain on brad!!! well done boxer..

god it was great at school, no money issues, no responsibilty (except doing 500 lines before 9.30am)
i wish i knuckled down and didn't pish about so much now!!!

BB
Old 01 April 2003, 10:40 AM
  #29  
stevencotton
Scooby Regular
Thread Starter
 
stevencotton's Avatar
 
Join Date: Jan 2001
Location: behind twin turbos
Posts: 2,710
Likes: 0
Received 1 Like on 1 Post
Post

On the BBC you could use '?' instead of print, the C64 also had BASIC shortcuts, that was pretty cool.
Old 01 April 2003, 10:53 AM
  #30  
mark_h
Scooby Regular
 
mark_h's Avatar
 
Join Date: Mar 2001
Location: Just passing through...
Posts: 17,497
Likes: 0
Received 0 Likes on 0 Posts
Post

Delphi is basically Pascal on steroids, and we use Delphi here.


Quick Reply: poke 36879,8



All times are GMT +1. The time now is 02:40 PM.