Listing /Program ...
#10 SIG HEADER: /Program SIG-Op: Socrates Created: 28-APR-94 07:38
SIG Topic: -_____-__--___----__-_-----_-_-
10 PRINT " ---===ššš Programmer's Sanctuary ššš===--- "
Please feel free to do any of the following:
* Ask questions about any programming problems you're having
* Help others out with problems they're having
* Upload groovy programs you've made! :)
* Discuss and debate computer/programming issues
* Suggest ideas for programming competitions! :)
Message Lifetime: 90 days
Thoughts of the day:
Lets get started on the Active Game!:)
Public Msg #460496 *Program* 15:20 05-NOV-94 *EXEMPT*
From: Xhacker (1 Reply) (Awarded 5000 Credits)
To: ** ALL **
FILE: crobots.lzh
here is a programming game that i found. It's not the newest version but
it works well. The idea is to program robots in C to search and destroy
other robots. Similar to corewars but better.
Xhacker
Public Msg #628250 *Program* 08:00 17-SEP-95 *EXEMPT*
From: Xhacker
To: ** ALL **
FILE: stars.exe
I'll try uploading again
Public Msg #629625 *Program* 01:03 19-SEP-95 *EXEMPT*
From: Zuid (1 Reply) (Awarded 100 Credits)
To: Dinn
FILE: colours.scr
Copy by Zuid, Copy by Zuid, Copy by*
It stuffs up a bit of ansi, but nothing major. :)
(This is what wheels wanted Chat to look like.)
Telemate 4.12 script
Public Msg #633765 *Program* 22:09 27-SEP-95 *EXEMPT*
From: Sleepy (1 Reply) (Awarded 3000 Credits)
To: ** ALL **
FILE: plasma.arj
small useless effect which could be considered remotely cool due to the
size.
Public Msg #634719 *Program* 15:24 29-SEP-95 *EXEMPT*
From: Kraught (Awarded 50 Credits)
To: Sleepy
FILE: _PLASMA.ARJ
This one, for anyone who has been collecting the other versions before
Ideleted them (<smile>) is much better than any of the other ones, I
think you will agree... :)
However, I still want you (Sleepy) to give me some of your plasma source
or something so I actually know how to make plasma (I don't know how I
made this - just alot of trial and error altering variables, etc...) :)
Kraught
Public Msg #635870 *Program* 12:10 01-OCT-95 *EXEMPT*
From: Heffalump (Awarded 1000 Credits)
To: ** ALL **
FILE: plasma.zip
<shrug>...includes asm source. Thought kraught might like it though
there is stuff all commenting.
Heff..
Public Msg #641094 *Program* 00:13 11-OCT-95 *EXEMPT*
From: Zuid
To: ** ALL **
FILE: rep.zip
Hello. :)
This is in here cause i haven't spoken to dinn about it yet. [cough]
(I'm sure it'll end up somewhere in /active :))
Anyways, it's the latest, fully functional REP. (This one only includes
the .TMS and .DOC files though.)
Public Msg #642655 *Program* 11:47 14-OCT-95 *EXEMPT*
From: Kraught (Awarded 500 Credits)
To: ** ALL **
FILE: KS.ARJ
...be gentle... it's about my first... <smile.Maffz> @8-)
Kraught
Public Msg #643228 *Program* 14:48 15-OCT-95 *EXEMPT*
From: Kraught (Awarded 500 Credits)
To: Maffz
FILE: MDC.ARJ
I was writing an ASM equivalent to this so I could compare speeds, but
half-way through, I realised that the ASM one would be incredibly
faster... y'see? :) <fop.C> :)
Kraught
Public Msg #643972 *Program* 00:19 17-OCT-95 *EXEMPT*
From: Slayer (Awarded 700 Credits)
To: ** ALL **
Subj: If (Foot!= Shoot)
Task: To shoot yourself in the foot.
C: You shoot yourself in the foot.
C++: You accidentally create a dozen instances of yourself and shoot
them all in the foot. Providing emergency medical assistance is
impossible since you can't tell which are bitwise copies and which are
just pointing at others and saying "That's me over there."
Fortran: You shoot yourself in each toe, iteratively, until you run out
of toes, then you read in the next foot and repeat. If you run out of
bullets you continue with the attempts to shoot yourself anyway because
you have no exception-handling capability.
Pascal: The compiler won't let you shoot yourself in the foot.
ADA: After correctly packing your foot, you attempt to concurrently load
the gun, pull the trigger, scream and shoot yourself in the foot. When
you try however, you discover you can't because your foot is of the
wrong type.
LISP: You shoot yourself in the appendage which holds the gun with which
you shoot yourself in the appendage which holds the gun with which you
shoot yourself in the appendage which holds the gun with which you shoot
yourself in the appendage which holds the gun with which you shoot
yourself in the appendage which holds the gun with which you shoot
yourself in the appendage which.....
Forth: Foot in yourself shoot.
Prolog: You tell your program that you want to be shot in the foot. The
program figures out how to do it, but the syntax doesn't permit it to
explain it to you.
BASIC: Shoot yourself in the foot with a water pistol. On large systems,
continue until entire lower body is waterlogged.
VisualBASIC: You'll only really _appear_ to have shot yourself in the
foot, but you'll have had so much fun doing it you won't care.
Motif: You spend days writing a UIL description of your foot, the
bullet, its trajectory, and the intricate scrollwork on the ivory
handles of the gun. When you finally get around to pulling the trigger,
the gun jams.
UNIX: %ls foot.c foot.h foot.o toe.c toe.o %rm *.o:.o no such file or
directory %ls %
Concurrent Cuclid: You shoot yourself in somebody else's foot.
370 JCL: You send your foot down to MIS and include a 400-page document
explaining exactly how you want it to be shot. Three years later, your
foot comes back deep-fried.
(taken from PrintScreen, newsletter of Sydney PC User's Group).
Slayer illustrative.
Public Msg #645567 *Program* 11:49 20-OCT-95 *EXEMPT*
From: Heffalump (6 Replies) (Awarded 700 Credits)
To: ** ALL **
FILE: AMAZE.ZIP (A real bore..)
This is a boring game i wrote...ive given up on it ..too boring <shrug>
If anyone has any ideas to make it more exciting (i dunno if its
possible) please tell me. Also if you try it and it doesnt work could
you tell me your setup. I was gonna add sound but i didnt :)
Anywayz, instructions: 1) find the exit
2) there are no more rules.
PLease dont reply to this message to tell me how boring it is..i already
know. Oh yeah, i cant draw so i used some sprites i shouldnt have.
Public Msg #645830 *Program* 21:17 20-OCT-95 *EXEMPT*
From: Kraught (Awarded 500 Credits)
To: ** ALL **
FILE: FONTVIEW.ARJ
Just a cool little thing. :)
Public Msg #649853 *Program* 15:04 28-OCT-95 *EXEMPT*
From: Kraught (Awarded 57 Credits)
To: ** ALL **
FILE: Acid.COM
<grin>... Yes! I know it isn't good to copy the same message/file to
more than one SIG, but this is just for those (intelligent) people who
don't read /Active... @8-)
Kraught
PS: It doesn't work with extended memory managers (EMM, QEMM, etc)...
So, if you (are you stupid enough to) have one of them installed on your
computer, just do a clean boot... :-)
Public Msg #661166 *Program* 01:02 18-NOV-95 *EXEMPT*
From: Sleepy (2 Replies) (Awarded 500 Credits)
To: ** ALL **
FILE: rc.com
Textmode doodling... this IS textmode... :) don't run under windows...
Public Msg #661489 *Program* 15:01 18-NOV-95 *EXEMPT*
From: Kraught (Awarded 300 Credits)
To: Sleepy
FILE: CLS_RC.COM
Reply to #661166
Here... straight after you run it, run this. :-)
It fixes the screen up! @8-)
Kraught
Public Msg #664914 *Program* 02:56 24-NOV-95 *EXEMPT*
From: Infi (1 Reply) (Awarded 1001 Credits)
To: ** ALL **
FILE: plasma.arj
Everyone is doing plasma's so i thought id add my own :)
Infi
Public Msg #665489 *Program* 13:24 25-NOV-95 *EXEMPT*
From: Hoju (Awarded 500 Credits)
To: ** ALL **
FILE: acidwarp.exe
This is a demo I found on my computuer just the other day.
To escape press ctrl-break <nod> :)
Public Msg #665600 *Program* 16:34 25-NOV-95 *EXEMPT*
From: Kraught (2 Replies) (Awarded 200 Credits)
To: Spam
FILE: WEIRDO.ASM
Reply to #665597, Reply to #665155,*
> Mind giving us the code? I'm interested to see what it is...
I don't have the code for the one I'm talking about, but I do have
another example that I wrote. :)
If you trace through it, you'll see exactly what it is s'posed to do,
but if you run it, your poota will crash. :-)
Kraught
Public Msg #666979 *Program* 19:29 28-NOV-95 *EXEMPT*
From: Zuid (Awarded 601 Credits)
To: Kraught
Subj: ..
From The Hackers Jargon File v3.2.0 [Look.Jedd]:
> :all-elbows: adj. [MS-DOS] Of a TSR
> (terminate-and-stay-resident) IBM PC program, such as the N
> pop-up calendar and calculator utilities that circulate on
> {BBS} systems: unsociable. Used to describe a program that
> rudely steals the resources that it needs without considering
> that other TSRs may also be resident. One particularly common
> form of rudeness is lock-up due to programs fighting over the
> keyboard interrupt. See {rude}, also {mess-dos}.
>
> :rude: [WPI] adj. 1. (of a program) Badly written.
> 2. Functionally poor, e.g., a program that is very difficult to
> use because of gratuitously poor (random?) design decisions.
> Oppose {cuspy}. 3. Anything that manipulates a shared resource
> without regard for its other users in such a way as to cause a
> (non-fatal) problem. Examples: programs that change tty modes
> without resetting them on exit, or windowing programs that keep
> forcing themselves to the top of the window stack. Compare
> {all-elbows}.
Public Msg #668074 *Program* 01:27 01-DEC-95 *EXEMPT*
From: Sleepy (Awarded 1000 Credits)
To: ** ALL **
FILE: plasma2.exe
ANOTHER plasma just in case you're not sick of them yet :)
This is sorta like kraught's acid but the palette is nicer and there's
no text... I was supposed to put a rotating phong shaded 3d
scrolly in <grin.k> but couldn't be bothered.
Public Msg #668103 *Program* 03:25 01-DEC-95 *EXEMPT*
From: Spam (1 Reply) (Awarded 1000 Credits)
To: ** ALL **
FILE: VGA.ARJ
OK, here's a list of the VGA registers & addresses etc. This is
basically for Kraught who wanted to know which registers to mess with to
access more memory for direct screen writes in mode 12h.
(Kraught: If this doesn't help, I suggest you try and get the source for
FRACTINT from the web, or prolly many BBSs with CD-ROMS (the archive is
FRASRCxx.ZIP I think). It has asm code for writing in just about every
mode possible. (I have code for writing in mode 12h, but it's only for
my tseng et4000 card rather than for just VGA in general).
Enjoy.
Spam.
Public Msg #668228 *Program* 10:47 01-DEC-95 *EXEMPT*
From: Sleepy (Awarded 200 Credits)
To: ** ALL **
FILE: plasma2.exe
Smaller and faster version.
Public Msg #668654 *Program* 10:40 02-DEC-95 *EXEMPT*
From: Xhacker (1 Reply) (Awarded 273 Credits)
To: ** ALL **
FILE: gourd.exe
here is my first attempt at vectors.. :)
xhacker
Public Msg #668894 *Program* 19:51 02-DEC-95 *EXEMPT*
From: Sleepy (1 Reply) (Awarded 1000 Credits)
To: ** ALL **
FILE: drunk.arj
I like beer
Public Msg #673608 *Program* 07:10 13-DEC-95 *EXEMPT*
From: Zuid (Awarded 2000 Credits)
To: Psycho
FILE: PCROB141.ZIP
Reply to #673551, Reply to #673260
> Err.. I got 1.41 off the net. Its on Zuids HD.. <nod> :)
>
> Zuid, upload it! Its in \slip\netscape or somewhere! :)
Yeah? [looks]
Oh! Git. [slap!] It was in \tm\download. :) I wish you'd keep my HD
better organised. It's murder trying to find things these days. :)
Oh dear. it's 100k. This is going to take a while.
Public Msg #677148 *Program* 02:48 20-DEC-95 *EXEMPT*
From: Sleepy (1 Reply) (Awarded 500 Credits)
To: ** ALL **
FILE: getalife.arj
...a mostly unoptimised life thingy...
(and buggy I just realised)
Public Msg #687744 *Program* 02:24 09-JAN-96 *EXEMPT*
From: Zuid (Awarded 2000 Credits)
To: Dinn
FILE: rep.zip
Hereya. :)
Source for latest REP, including repproc.inc and rep.doc
Public Msg #688237 *Program* 02:00 10-JAN-96 *EXEMPT*
From: Nickz (2 Replies) (Awarded 2000 Credits)
To: ** ALL **
Subj: printf()
Ok, I ended up solving that printf() problem I had with the
parameters, so i thought I'd dump the answer to my problem in here
incase anyone could improve on it, or incase you have any similar probs
in the future. The routine is:
void prf(char *str, ...) {
asm push word ptr [bp+16]
asm push word ptr [bp+14]
asm push word ptr [bp+12]
asm push word ptr [bp+10]
asm push word ptr [bp+8]
asm push word ptr [bp+6]
sprintf(&buff[bufptr],str);
asm add sp,12
bufptr = bufptr + strlen(&buff[bufptr]);
}
This routine allows up to 6 extra parameters of any data type to be
passed to the routine. Basically, the parameters passed to prf() are on
the stack, so I grab them from the stack and push them onto the NEW
stack prior to calling sprintf(), so that the extra parameters it may
require will be where it expects them.. stacked on the stack, regardless
of data type. This routine needs to be compiled with the small module.
If large model <or larger> is used, the [pb+ offsets need to be in
increments of 4 <for far pointers> and the add sp,12 should be add
sp,24.
I know it's crued, but it does the job :)
...NickZ.
Public Msg #688459 *Program* 12:56 10-JAN-96 *EXEMPT*
From: Kieran (1 Reply) (Awarded 1000 Credits)
To: Nickz
Subj: Problem
Reply to #688033
> Ok, I have a programming problemn, and whoever can answer this
> question is a genius! :)
>
> Basically, I want a routine which can accept any number of parameters
> and any type of parameters, like printf() does.
>
Try looking up the va_start, va_arg and va_end macros which should be in
stdsrg.h... these allow you to pass any number of functions you wish,
although I'm not too sure how you would put it all together in one
printf.. you would have to print them all seperately..
It would prolly need a lot of work, I basically don't worry about
va_???? macros, I just sprintf to a varible and then print that varible
:).. that way you don't need to worry about more than one arg.. :)
Although in some cases it's not viable..
Hope that helped..
Cheers
Kieran
Public Msg #707133 *Program* 18:01 18-FEB-96 *EXEMPT*
From: Kraught (Awarded 1000 Credits)
To: Dinn
FILE: MATRIX.COM
You probably remember this, but I'm reposting it because I fiddled with
something, and it makes it groovier! [hehe]... ;)
Just load it into DEBUG before you run it, and adjust the word value at
CS:0515... 'tis cool!! ;)
The Guark!!
Public Msg #708320 *Program* 22:33 20-FEB-96 *EXEMPT*
From: Dinn (Awarded 1 Credits)
To: ** ALL **
FILE: mscdex21.arj
Okay. Here is the documentation for MSCDEX 2.1.
It's written by Microsoft, so don't get your hopes too high. :) But
anyway, it tells you how to do various CD-ROM related functions. <nod>
Dinn.
Public Msg #709455 *Program* 15:26 23-FEB-96 *EXEMPT*
From: Sleepy (1 Reply) (Awarded 5000 Credits)
To: ** ALL **
FILE: shading.exe
Erm... not sure if I've already posted this... it's an experiment in
shading...
Public Msg #710143 *Program* 02:05 25-FEB-96 *EXEMPT*
From: Infi (Awarded 2000 Credits)
To: ** ALL **
FILE: torus.exe
Erm, thought id throw this one in, as everyone seems to be finally
adding to this sig :)
uhm, dont be too picky on it! :)
Infi
Public Msg #711348 *Program* 13:50 28-FEB-96 *EXEMPT*
From: Psycho (1 Reply) (Awarded 2000 Credits)
To: ** ALL **
FILE: voxel.exe
Heres a /<-Rad voxel thing.
Pardon the size but it was written in C so I couldn't get it much
smaller (damn these protected mode compilers :) ).
If you have any problems with it tell me what happens, what system etc.
Public Msg #714136 *Program* 21:37 04-MAR-96 *EXEMPT*
From: Kraught (2 Replies) (Awarded 1000 Credits)
To: Jaseo
FILE: PLASMAT.COM
...The real thing... :-)
The first (that I've seen!!) 3-D sinus plasma. :-)
The Guark!!
PS: Press space-bar, or better yet, exit out and run it again. :)
There are 4 levels of weirdness, selected at initial run-time. Everytime
you press space-bar, it generates a new random plasma based on the
weirdness level... ;)
PPS: Don't be a goit and run this under Windows and then complain that
it doesn't work. (Though it may work under Windows. I wouldn't know,
tho) :-)
Public Msg #714655 *Program* 22:36 05-MAR-96 *EXEMPT*
From: Siiko (Awarded 1000 Credits)
To: ** ALL **
FILE: size.arj
This is a little program that you can search for files in a directory by
size in that you can specify whether you want to look for files bigger
or smaller than a certain size <shrug> can sometimes be useful, like
when trying to find big files or something <Shrug> :)..
anyway, here tis.. i'll eventually make it have a "/s" type switch to
make it search through subdirectories, when i work out how :).. btw, it
will show up all files, ie system, readonly, and hidden, as well, of
course, as archive..
Public Msg #714700 *Program* 00:20 06-MAR-96 *EXEMPT*
From: Infi (1 Reply) (Awarded 2000 Credits)
To: ** ALL **
FILE: mandel.arj
Here's alittle help file that might be of use to some of you, although
ive suggested to use iterations of 250-500, or 1000 to 2000 its entirely
up to you and would depend on what precision level you use, although
fractint only uses 100 iterations, it is possible to use more but again
it would depend on what mode and precision level you use...
Anyway hope this all makes sense, i might even work on julia's next :)
Oh, yeah theres no source code, as its all theory and help, so thats up
to you, (im keeping mine under wraps for now), sorry...
Infi
Public Msg #715676 *Program* 23:10 07-MAR-96 *EXEMPT*
From: Sleepy (Awarded 3000 Credits)
To: ** ALL **
FILE: tetris.arj
Nothing new... just a bit smaller...
Public Msg #719635 *Program* 13:46 16-MAR-96 *EXEMPT*
From: Petch (2 Replies) (Awarded 2000 Credits)
To: ** ALL **
Subj: C++
This might be a stupid question, but I will ask it anyways!
In the following <for C++ maybe even C>,
if (ch >= '0' && ch <= '9') {
is there anyway to get it to just see if 'ch' is in the set
'0'..'9' ? ... I think in Pascal it was "if ch in [0, .., 9] or
something wierd...
Anyone !? :)
Petch
Public Msg #719790 *Program* 18:43 16-MAR-96 *EXEMPT*
From: Sleepy (1 Reply) (Awarded 3000 Credits)
To: Petch
Subj: C++
Reply to #719635
> In the following <for C++ maybe even C>,
>
> if (ch >= '0' && ch <= '9') {
>
> is there anyway to get it to just see if 'ch' is in the set
> '0'..'9' ? ... I think in Pascal it was "if ch in [0, .., 9] or
> something wierd...
But why? This way is probably faster than the pascal set anyway...
If you've got a weird set you want to test a character against, us the
strchr() funtcion. So the above could become:
if (strchr("0123456789",ch)) {
Public Msg #721327 *Program* 21:30 19-MAR-96 *EXEMPT*
From: Psycho (Awarded 500 Credits)
To: ** ALL **
Subj: SB16 Code
Okay. How do I read the `levels' from an SB16 to make a led meter thing
similar to that in the Creative Mixer (that comes with newish Creative
Cards)?
Any ideas? :)
I'm going to check out the net later for SB16 coding things. If i find
anything i'll consider uploading it.
I'm going to write a strobe program thing that goes with the CD you're
playing <nod>
Have a nice day.
Public Msg #721370 *Program* 23:27 19-MAR-96 *EXEMPT*
From: Psycho (1 Reply) (Awarded 1000 Credits)
To: ** ALL **
Subj: Soundblaster Thing
I got what I wanted after 1/2 an hour on the 'net :)
Basically, its how to get the value of the sample (between 0 & 256 with
128 being neutral) thats currently being processed by the Analog to
Digital converter (it seems that even stuff getting output goes thru
this). This means that even with no sound theres a fluctuation because
of the microphone port.. Hmm.. maybe if I turned the microphone port
off.. lemme try that :)
Nah. Even with the line-in muted it still fluctuates. Anyhow. Heres the
pseudocode for doing it.
Oh. Yeah. Where I say 2xChyou substitute the 2nd digit of your SBs
port there.. (ie. for port 220 its 22C, for 260 its 26C)
Write 20h to Port 2xCh
Read from 2xEh
If bit 7 is set then there is data waiting.
Read value from 2xAh
Simple. :)
Public Msg #721434 *Program* 01:00 20-MAR-96 *EXEMPT*
From: Psycho (1 Reply)
To: ** ALL **
FILE: strobe.exe
Copy by Psycho, Copy by Psycho, Cop*
Version 1.1 :)
Sets CD-Audio levels on startup for best effect. REstores them on exit.
I had to post this release because it fixes the problem that everyone
has their Cd-Audio mixer level set differently.
Public Msg #722331 *Program* 00:47 22-MAR-96 *EXEMPT*
From: Kraught (1 Reply) (Awarded 1000 Credits)
To: Psycho
FILE: PLXOR.COM
Reply to #722270, Reply to #722089,*
> it. I shouldn't have uploaded publically considering i wrote it in 10
I wrote this about 10 minutes ago (it took me about 10, maybe 20 minutes
tops)... Erm... :)
Its just sorta stationary plasma exclusive ORing... ;)
Kraught
KKrraa
uugggh
hhtt
Public Msg #722594 *Program* 17:42 22-MAR-96 *EXEMPT*
From: Kraught (1 Reply) (Awarded 500 Credits)
To: ** ALL **
FILE: Qplasma.arj
If you're sick of plasma, don't download this. :-)
Its plasma... better than ACID because, as you may have noticed, ACID
plasma was plasma composed of blocks, while this is regular plasma
composed of curves... @8-)
Erm... anyway, if you're interested, 'tis only a quick download. :)
Kraught
KKrraa
uugggh
hhtt
Public Msg #723333 *Program* 10:26 24-MAR-96 *EXEMPT*
From: Kraught (1 Reply) (Awarded 169 Credits)
To: ** ALL **
FILE: qPLASM.arj
This is 4 interesting things... :)
Hint: Run QPLASMP0, and press from 9 through to 0 with a couple of frame
intervals... looks kinda nice. :-)
[shrug]... Yeah, btw, download this... sorta, maybe... @8-)
Kraught
KKrraa
uugggh
hhtt
Public Msg #724760 *Program* 20:12 27-MAR-96 *EXEMPT*
From: Kraught (3 Replies) (Awarded 2000 Credits)
To: ** ALL **
FILE: ACTIVE.arj
Here is a little BBStro program that I made for Active.. :)
It involves quadruple sinus plasma behind a tiled pseudo-screen with a
dodgily made scrolly at the bottom. It is highly enetertaining, and I
hope you enjoy watching it as much as I enjoyed making it. @8-)
Kraught
KKrraa
uugggh
hhtt
---
Sigop's note:
Please note that /program does not support illegal drug use in any way,
and the message was awarded on its programming and informational effort.
==> ...Sure sure... :)
Public Msg #727451 *Program* 01:32 02-APR-96 *EXEMPT*
From: Infi (1 Reply) (Awarded 3000 Credits)
To: Nickz
FILE: vgakit60.arj
Reply to #727207
Heres a VGAKIT that ive found to be most helpful!...
Infi
Public Msg #731775 *Program* 00:36 11-APR-96 *EXEMPT*
From: Spam (Awarded 3000 Credits)
To: ** ALL **
Subj: VESA bankswitching et al
(This message was meant to be to NickZ but that damn command ghosting
thing messed it up).
Ok, I finally found the code (had to get it off the net again coz I'd
deleted it). Anyway, after going through it and deciding that the VESA
section of it was too drawn-out and obscure to bother quoting, here's
basically what (I think) you do. I saw Sleepy's message on the INT call
to set the bank. Yes, his works, but it's slower, and his message
doesn't mention anything about finding the granularity. Translate into
whichever language you like.
1. Do an INT 10h with AX=4F01h, BX=Video mode (101h for 640x480x256),
and ES:DI pointing to a 256 byte buffer.
2. On return, successful if AH=0. Bit 0 in the first byte of the 256
byte buffer is 1 if the video mode is supported.
Offset 04h is a word containing window granularity (smallest KB
increment by which the window can be moved).
Offset 06h (word) gives the window size, in KB.
Offset 0Ch is a DWORD pointer to the window positioning subroutine. Call
with identical registers to Sleepy's INT call.
SO, basically, if you want to switch banks 64K at a time, then get the
granularity using the above call/offset. Divide 64 by this number, and
put it in DX. Make BH=0, then call the window positioning subroutine.
This will move the video seg. to the next 64K window. To get to the next
window, just add (64/granularity) to the current number, and call the
routine again.
Hope this works, coz I've not actually tried it. Should do :)
Spam.
Note: I looked through all the source for a Diamond Stealth specific
routine. Unfortunately there isn't one. If you have the docs for the
card, it might have a list of registers or something.
..."God, Woody! I told you to TUCK the children in bed!" - Mia Farrow
Public Msg #733182 *Program* 09:21 13-APR-96 *EXEMPT*
From: Dinn (1 Reply)
To: ** ALL **
Subj: Prime Number Gen. Comp.
New competition!
Write a Prime Number generator, which prints on seperate lines, each
increasing prime number. It should also display how many prime numbers
there are between each number and 0.
The program should start generating numbers from 70000, and should
continue until a key is pressed, OR until the total number of numbers
have already been generated. This can be specified in a command line,
or at the start of the program in an input. There is no 'maximum' amount
of prime numbers to be generated.
I think that's all.
Entries will be judged on speed, and size. [by Me]
Go for it!
Dinn.
Public Msg #741041 *Program* 09:29 01-MAY-96 *EXEMPT*
From: Gabbo (2 Replies) (Awarded 1000 Credits)
To: ** ALL **
Subj: Competition?
Ok People... Dinn was telling me about some of the competitions you guys
have on here, and I suggested either some sort of encryption/decryption
cpompetition or something really stupid like make the fastest Prime
number finder in Qbasic or Pascal with no inline ASM code... (Something
which would let 3gl programmers participate and not all you ASM Freaks)
Or another idea is a program that can read say a 10meg file and write in
backwards the quickest... :)
So if anyone has any ideas just write em up... I am sure we can think of
either a good comp.. Or some really stupid one that will still be fun!
Ohh BTW The encryption one you have a choice of either trying to write
a decryption program for a encrypting.EXE or try and break a code....
(This may be to hard for most people though)
Ohhh well.... Back to refreshing my ASM skills I think.. (What Fun)
GaBBo
Public Msg #742571 *Program* 19:05 03-MAY-96 *EXEMPT*
From: Sleepy (Awarded 2000 Credits)
To: ** ALL **
FILE: mouse.arj
One way to use the mouse... mouse handler (inline asm) with sample code
for TC/BGI...
Public Msg #746358 *Program* 17:29 11-MAY-96 *EXEMPT*
From: Killem (1 Reply) (Awarded 3000 Credits)
To: ** ALL **
Subj: Prime numbers
A slow prime number generator:
void main (int integer, int num) {
printf("\n3 ");
for (int i=5; i<100; i++, num=0) {
for (float e=2; e<i; e++, integer = i/e, num++)
if ((i/e)== integer) { num=0; break;}
if (num) printf("%d ",i);
}
}
Absolutely no use to society.
But hey, it's a program. (Something uncommon to this SIG :) )
Public Msg #763186 *Program* 14:54 16-JUN-96 *EXEMPT*
From: Julia (Awarded 3000 Credits)
To: ** ALL **
FILE: purity test for programmers
don't know if this has been put up before..
it's just a text file i found...
Julia
Public Msg #769336 *Program* 09:11 27-JUN-96 *EXEMPT*
From: Nicheren (Awarded 3000 Credits)
To: Pengo
FILE: tnyelvis.arj
Here's tiny elvis! A must for all winners. :)
Public Msg #791617 *Program* 00:51 14-AUG-96 *EXEMPT*
From: Dudey (Awarded 3000 Credits)
To: ** ALL **
FILE: VIDEO.ZIP Fractint Video Routines Cool!
Hi, these are the video routines from Fractint. Why fractint I hear?
Firstly, it has source code for programming nearly EVERY super VGA card
that exists, modes like 376x564 all the way up to 400x600!
For the tweaked modes - they will (hopfully) work on all standard VGA
cards - beats 320x200x256 any day!
enjoy!
Public Msg #796921 *Program* 21:10 26-AUG-96 *EXEMPT*
From: Dudey (1 Reply) (Awarded 3000 Credits)
To: ** ALL **
Subj: Tetris Comp
Hi, this is to liven things up a bit.
A TETRIS COMP!!
That's right, you all know how to make it, the comp is the most bizare,
beautiful and downright strange Tetris game you can come up with..
preferably <64K..
So, the prize? I don't know yet, but i'll keep you posted..
Expect my entry soon, and I expect yours..
Cheers,
Dudey [;-*)
Public Msg #803511 *Program* 22:51 12-SEP-96 *EXEMPT*
From: Dudey (1 Reply) (Awarded 2000 Credits)
To: ** ALL **
FILE: TETRIS.BAS My entry! (finally..)
Okay.. here's my one. I was going to compile it, but even PKLited it
took 48K which is too big. Basically you run it through Qbasic..
enjoy!
Public Msg #818373 *Program* 01:11 18-OCT-96 *EXEMPT*
From: Spam (Awarded 4000 Credits)
To: Sleepy
Subj: Spam and the Last Crusade
Excerpt from 'The Quest for the Missing Interrupts', by Matthew Craig:
Tuesday, 11:16pm
I was, by now, getting concerned as to what might be wrong.
The past two days had been fruitless. Suddenly, it occured to me
that perhaps the IRQ9 line was being masked in the slave 8259
interrupt controller. A glimor of hope shone in my mind as I
rummaged through books looking for interrupt controller I/O port
addresses.
Tuesday, 11:48pm
Damn..the thing still doesn't work. Even enabling IRQ2 in the
master 8259 (to which the slave 8259 is connected) was futile. Time
to go watch L.A.P.D. and infomercials to keep my sanity.
Wednesday, 2:33pm
Frustrated and depressed, I decided to check once and for all if
this card was even capable of generating interrupts. I dissected the
machine, and rummaged some more through cupboards for an ISA-bus
pinout. Fumbling with the card, I saw that indeed, there was a PCB
track connected to the IRQ9 pin. It meant little. No matter what I
had tried, I couldn't get it to work.
Dejected and half-heartedly, I began to follow the track around the
display card, ducking and weaving through components (requiring some
use of a nifty desoldering tool to keep sight of it), until suddenly
...there it was! The holy grail! The city of Atlantis!!..the..the..
OPEN JUMPER!!
Unbridled joy swept over me as I wrapped a piece of wire around it
a few times. This had to be it.
Wednesday, 2:46pm
F@*% it. The bastard still won't work. F&*#! you all.
<Picks up computer and lobs through windoĶøq©&1ą\óŖPÕŪ½4·čd\ĄŁ
÷Ń«ĪxŹ04ĒZŲo*T&dzO\{ ēó&©ķ?ùŽÓ¾LMOUó§¾óGH”z·6÷Ó)Ż S
NO CARRIER
Public Msg #854415 *Program* 22:21 03-DEC-96 *EXEMPT*
From: Spychoo (1 Reply) (Awarded 5500 Credits)
To: Nickz
FILE: VBE20.ZIP VESA BIOS Extensions 2.0 Reference
Reply to #854406
> Ok.. a simple question.
>
> I use an INT 10 call on the PC to enable the various graphics
> modes in assembler. However, it seems that it does not handle
> certain modes??
> <granted, i didn't try anything over about 15>...
>
> So, how, in assembler, do I enable 640x480x256 mode for does,
> not windows?
You need to use VESA. This is done by calling INT 10 with the AX
register set to 4Fxx for the functions.. but they're different.. uhm,
i'll upload the VBE (VESA BIOS Extensions) 2.0 API thingie, but most
cards don't support VBE 2 so you'll need UniVBE or somesuch.
Oh, Windows drivers would have routines different for each card, so it
would use card specific registers and stuff to avoid using VBE. But VBE
is nicer :)
Addendum (21/12/97): It's fun modifying exempted messages.
Public Msg #871831 *Program* 20:26 10-JAN-97 *EXEMPT*
From: Sleepy (1 Reply) (Awarded 5000 Credits)
To: ** ALL **
FILE: fridge.exe
Fridge invaders!
sys req: vga, 286+
left ctrl key - fire
left/right arrows - movement
[snore]
Public Msg #878355 *Program* 07:07 23-JAN-97 *EXEMPT*
From: Dudey (2 Replies) (Awarded 2000 Credits)
To: Sleepy
FILE: MIKMOD.ZIP Your salvation!
Here you are!
enjoy :D
Public Msg #911823 *Program* 08:54 14-APR-97 *EXEMPT*
From: Dudey (Awarded 5000 Credits)
To: ** ALL **
FILE: GOSH3D.ZIP Gourad Shading Source
Okay, this is a big mother - but it contains full source for 32-Bit
compiled C for a gourad shaded light sourcing engine. The gourad shaded
screen updates are written using a far pointer to video mem(sel+32-bit
off), but apart from that most of the code can be converted. I've
included a freeware version of my MMPE graphics library, but having said
that it probably won't compile on anything but Symantec C++.
What the hell though. You've got the code. It's commented. It's fast. It
works with SVGA. If the code is so hard to convert for you from Symantec
to whatever, i guess you shouldn't be using it. Or whatever. Anyway,
enjoy! (and if you use it in your yak demo, i get 50% of the creds if
you win!)
cheers,
Dudey
Public Msg #911874 *Program* 11:30 14-APR-97 *EXEMPT*
From: Sleepy (Awarded 5000 Credits)
To: Dudey
FILE: sl.zip
Reply to #911829, Reply to #908861
> any takers? and has anyone got source for a 32-bit mod player for sound
> blaster? all the code i have is 16-bit, and midas and symantec c don't
> mix.
Umm. I have something I wrote when I first started using watcom, so I
don't know how stable it is. It just plays mods and it only really works
on mono 8 bit soundblasters :) (ie it won't be stereo on anything else)
Don't know how stable it is, or if all the bits are there even, cos I
haven't used it since I wrote it :) And it's all written in asm.
And I can't remember how it works :) No comments. And it's not very
optimised.. and and and :)
The variable and function names make sense though, so you should be
able to figure out how it works :) Prolly be good if you can read asm :)
Public Msg #930251 *Program* 23:10 28-MAY-97 *EXEMPT*
From: Nickz (1 Reply)
To: ** ALL **
FILE: BasicApp.ZIP
Ooohhh.. yes, I've done it!! I've written my first stuff-around
DirectX app using Microsoft Visual C++ V4.
I bought my self a nifty little book called "3D Grapics Programming
for Windows 95"... It's based entirely on coding DirectX 2 stuff in
Win95 using MSVC++ V4. Mind you, I have DirectX 3, but it still works
:)
Anyway, I recommend this book!! it's very easy to follow, humourous,
well written, and gets straight into it.
As of the first chapter, I had 3D stuff spinning in a small app window
in Win95. Then I added to it myself to get a few other shapes and
rotating lighting and stuff. Easy stuff!! Sexy too!! Oh, and the book
comes with a CD which contains the DirectX 2 SDK (Software Developers'
Kit) and lots of examples!!!!
So, I thought I'd upload my very first DirectX/MSVC++ app here :)
Basically, if you have Win95 and DirectX 3, could you please run this
exe and tell me if it works on your machine?? I don't think that I
needed to include any DLL's with it. I think they're all standard with
Win95 and DirectX.
Also, run it from Win95 itself and not a dos shell. It doesn't like
dos shells :)
Anyway, if it works, tell me. if it doesn't work, tell me. ..and if
it crashes Win95, tell me or Spychoo so we can delete this message :) :)
Cheers!!
...NickZ.
P.S. if this runs fine, then maybe I could code a 3D Yak???? :)
P.S. I'm running it on a P133 at 800x600x256 with 32meg ram with
Dialmond Stealth video :) ..andit's kinda fast with that setup.. I
should have made it show a frame rate <shrug>.. Oh well.
Public Msg #949002 *Program* 17:02 19-JUL-97 *EXEMPT*
From: Spychoo (4 Replies)
To: Nickz
FILE: BALLS.ZIP
Okay, for people that have had trouble running Balls here is a version
that uses 16bit and not 24bit colour, hopefully it will work on machines
it wasn't working on.. and if not, i'll break down and cry..
Oh, my machine wasn't the only one it worked on, it worked for Zuid too,
so there :)
Public Msg #949322 *Program* 07:17 21-JUL-97 *EXEMPT*
From: Zuid (1 Reply) (Awarded 8192 Credits)
To: ** ALL **
FILE: RepLite.ZIP
Attached: Latest RepLite.
Main additions to this version:
* Fixed the thing that I did before that stopped the entire /away
system from working.. most of you wouldn't have seen this version,
though.
* Added (modified) multi-user support. At Mabster and Hoju's request
I had already done something along these lines where you had your
normal REP\ directory coming off your \tm\ or whatever directory,
then you made a directory with the name of a user and put an
entirely different set of configuration files in there, and RepLite
would reset itself with the new config when you changed users.
The way it works now is that you have usernames for each option you
specify in your config files.
How to configure multiple users:
Firstly - Anyone who doesn't want to set up RepLite to work with more
than one user profile is welcome to not read this, as your current
config files will all work flawlessly without any modification.
The format for a user specific option in a configuration file is:
User|Option=Value
(whereas the old syntax was simply Option=Value.)
Any option in a configuration file without a username before it will be
assumed to apply to the current user, and options are read in order, so
you _must_ have your user configurations _before_ your global ones.
More on this in a second.
The one `special' part about the user syntax is that while you can have
no user specified so all match, you can also make sure an option is only
used if there is _no_ user currently set.. this comes in most handy with
the new .cfg file command, "DefaultUser". Typical format for this
command is:
-|DefaultUser=Zuid
Whenever RepLite changes users, it re-reads the .cfg file. This means
that if you don't have -| in front of Default user, you _won't_ be able
to change user configurations, because every time you try, RepLite will
read your option and change the username back. :)
If you leave this option out of the .cfg file, the normal no-username
will be used, and global settings only will apply.
An example of usefulness:
(A sample response.rep):
Hoju|Spychoo=/p Spychoo HEHE YAKS R SIQ
Hoju|Zuid=/p Zuid Baby!! [rape]
Mabster|Lefty=/p Lefty :(
Mabster|Alt=/p Alt :(
Mabster|Durry=/p Durry :(
It's pretty obvious what this does, but it's always nice to have
examples to clear things up. :)
(A sample replite.cfg):
-|DefaultUser=Mabster
Hoju|ClearRelog=Ask
Hoju|AutoJoin=Spychoo
Mabster|ClearRelog=No
Mabster|AutoJoin=Lefty/Alt
Mabster|AutoAway=350
ClearRelog=Yes
Okay, here we have Mabster as the default user. When Mabster relogs, it
doesn't clear the backscroll. When Hoju relogs, it asks, and when
anyone else (including "", or nobody) relogs, it clears it.
If anyone but Mabster (including Hoju) is using it, RepLite won't
automatically set itself as /away after a certain period of time, though
if Mabster is on, it'll set it away after 350 seconds.
There, you should all have the hang of that by now. :)
Public Msg #949325 *Program* 07:24 21-JUL-97 *EXEMPT*
From: Zuid (1 Reply) (Awarded 512 Credits)
To: ** ALL **
FILE: RapLite.zip
Oh, Jelly just reminded me. :)
Spychoo wrote this Language File for RepLite.
This was actually what gave me the idea for different `languages',
because a while back I gave Spychoo the source for the script and went
through changing all the text strings to a somewhat more humorous
version of their former selves. :)
Anyhow, stick this in your rep\ directory, where your config file and
your replite.lng files are.
Public Msg #949326 *Program* 07:28 21-JUL-97 *EXEMPT*
From: Zuid (Awarded 512 Credits)
To: ** ALL **
Subj: Er, bit I left out about RepLite.
With the user configurations, that syntax applies to _all_ the files
that RepLite uses.. this means that you can apply it to your language
files too.
There is an Option in the language files called "AwayDefaultMsg", which
sets the default message that RepLite sends back to people when you've
got /away turned on..
However, if you wanted to change that for each user without making two
language files, you could do the following:
Mabster|AwayDefaultMsg=I'm drinking JB. :(
Hoju|AwayDefaultMsg=I'm drinking anything I can find! :)
Anyhow, work it out amongst yourselves. :)
Public Msg #951070 *Program* 17:41 27-JUL-97 *EXEMPT*
From: Khaine (1 Reply) (Awarded 2048 Credits)
To: Spychoo
FILE: FIRE.ZIP
Reply to #951051
> Hey, you should all upload stuff. Uploading is good. Lets me exercise my
Okay :)
Its a fire thingy that I wrote. Its crap, and slow, and generally not
very good :) but its my first try. It'll improve!
Khaine
Public Msg #952058 *Program* 13:28 20-JUL-97 *EXEMPT*
From: Nickz (3 Replies)
To: ** ALL **
FILE: stage.zip
Fw by Spychoo
yeah :)
Oh, the texture is "texture.bmp".. SO long as the width and hieght
are multiples of the power of 2 <eg. 64, 128, 256, etc>, and the number
of colours are the same, you can copy any .BMP over this texture.bmp
...NickZ.
Public Msg #952388 *Program* 10:40 31-JUL-97 *EXEMPT*
From: Bootleg
To: ** ALL **
FILE: WINCRYPT.ZIP
Here is a program i did some time ago... it is a file
encryption/decryption tool called WinCrypt V1.0
Give it a go, it is easy to use.
Bootleg
Public Msg #952662 *Program* 07:09 01-AUG-97 *EXEMPT*
From: Bootleg
To: ** ALL **
FILE: LIBS.ZIP
Hopefully it will work this time...
Bootleg
Public Msg #954127 *Program* 22:39 05-AUG-97 *EXEMPT*
From: Spychoo
To: ** ALL **
FILE: FLAMES.BAS
This is in qbasic, and really slow :) it gets about 1 frame every second
on my P200+, so goodluck :)
I only really wrote it to show how a fire effect works.. dunno why,
probably because of Lights warped attempt at doing it.
If you don't like it.. go away :) If i could be bothered i'd work out
the proper stuff so that it looked like a generic demo fire, but i don't
want to :)
Enjoy.
Public Msg #954130 *Program* 22:46 05-AUG-97 *EXEMPT*
From: Spychoo
To: ** ALL **
FILE: FIRE.EXE
Fw by Zuid
This is a real Fire effect i did ages ago, just as a contrast.. BTW: The
qbasic fire thingie uses the same palette as this :)
Oh yeah, press ENTER to make the flame dissapear really cooly.. or just
press ESCape to quit.
Runs quite smooth on my P200+, it's 100% ASM.
Have a nice day.
Source not included, and never will be ;)
Public Msg #962911 *Program* 17:39 05-SEP-97 *EXEMPT*
From: Spychoo
To: ** ALL **
FILE: qbasic.zip
This is QBASIC.EXE incase people don't have it. It came with DOS 6.X
but Microsoft didn't include it with Windows 95.. they're bastards :(
So here it is, it's worth the download for running Rasputins stuff! :)
Spychoo [SigOp!] :)
Public Msg #962914 *Program* 17:47 05-SEP-97 *EXEMPT*
From: Dinn (Awarded 4096 Credits)
To: Light
Subj: macros
Reply to #962817, Reply to #961590,*
> But lately there have been a few questions about sin() and cos() things
> and I am just wodnering what practical use I can use these things for
> and what do they actually do?
>
> I think they have something to do with frequencies or defining
> waves/freq.s or something.
ésine and cosines - a short lesson by Dinn R.
y
³1
__--Å--__
- ³ -
/ ³ X P(x,y)
/ ³ / \
/ ³ / \
| ³ / |
[ O³ /é ]
ÄÄÄÄ[ÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄ]ÄÄÄÄx
-1[ ³0 ]1
| ³ |
\ ³ /
\ ³ /
\ ³ /
-__ ³ __-
--Å--
³-1
Here you have a circle, with centre O, and a radius of 1.
The point P is any point on the circumference.
The line OP is at an angle of é to the x-axis.
You can use the sin/cos functions to determine the coordinates
of P, so P(x,y) is the same as P(cosé,siné).
That's one use for sine and cosine.
A sine wave is when you plot the value of siné over é, and
will end up looking something like:
siné
³
__ ³ __
- - ³ - -
- - ³ - -
/ \ ³/ \
ÄÄÄÄÄÄÄÄÄ\ÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄ\ÄÄÄÄÄÄÄÄÄ>é
\ /³ \ /
- - ³ - -
-__- ³ -__-
³
³
Things tend to oscillate in the same way as a sine wave, so
the purest musical tone you'll hear will be a sinusoidal wave.
I think that any wave can be broken down to the addition of a
number of sinusoidal waves, using fourier analysis, which is
what those computer frequency spectrum-o-meters do on things
like Cubik Player, etc.
sin/cos/etc are also used for working out lengths of sides
and sizes of angles when dealing with triangles, as well as
predicting the location/velocity/accelleration,etc of things
obeying simple harmonic motion, etc.
As far as programming goes - you can make some fairly groovy
effects with sinusoidal waves on screen; just vary the colour
according to sin(x) or similar.. But if you're going to be
coding nice demo effects, you'll need a good base in maths.
Dinn
Public Msg #963520 *Program* 13:24 07-SEP-97 *EXEMPT*
From: Dinn (Awarded 2048 Credits)
To: Light
FILE: ellipses.bas
Reply to #963082, Reply to #963059,*
> How about this, draw an elipse on the screen, then slowly animate
> the elipse till it is the opposite way. Like if it was 5 cms
> horizontally and 2cm vertically, then it should end up, 2cms
> horizontal and 5cm vertically.
Erm. Here you go. It's in qbasic. It's fairly messy too, but I've tried
to make it so that one step is done in one line, rather than
cramming them all into one expression.
> This could be done by simply incrementing and decrementing, but I
> would like to see sin() or cos() or both used.
Actually this rotates it - I thought that might make a better
demonstration of sin/cos/arctan. :)
Dinn
Public Msg #996905 *Program* 12:23 27-DEC-97 *EXEMPT*
From: Spychoo (Awarded 8192 Credits)
To: ** ALL **
FILE: doomsrc.zip
iD has released the DOOM source to the general public.. now, this
version only compiles under linux (due to using a commercial sound
library for the DOS version that they couldn't include) and still
requires you to have your original DOOM/DOOM 2 WADs.
Anyway.. enjoy :)
Addendum: If you don't want to download it here, it's at
ftp://ftp.idsoftware.com/idstuff/source/doomsrc.zip
Public Msg #1043750 *Program* 03:42 05-FEB-98 *EXEMPT*
From: Sleepy (1 Reply) (Awarded 4096 Credits)
To: ** ALL **
FILE: itdic.exe
Err. State of the art program thingy that I wrote many moons ago :)
I have the source somewhere, I'll look for that next :) It was written
in pascal!! :)
.
Public Msg #1050711 *Program* 19:02 25-FEB-98 *EXEMPT*
From: Dhufish (Awarded 2048 Credits)
To: ** ALL **
FILE: multikey.zip
eloheolhee:)
Chucky was hassling me to make my arrow keys work better in the game, so
i hunted on the net and found this file:) It kinda saves you any
headaches:)
you just:
blah = multikey(-1) 'initialize
if multikey(scancode) then
eg, for my left right stuff:)
if multikey(75) then ... 'left
if multikey(77) then ... 'right
and then:
blah = multikey(-2) 'un-initialize:)
it's even got this groovy "keytest" sub you can run seperately in the
immediate window that let's you press keys and find their scancodes so
you don't have to hunt for them:)
beybyebyeybe:)
Dhufish
Public Msg #1052509 *Program* 23:29 02-MAR-98 *EXEMPT*
From: Spychoo
To: ** ALL **
FILE: QSDMCG.ZIP
The winning entry.. I can't remember what the Q stands for (QBasic?) but
the rest is Supa Dupa Mega Car Game.
Written by Dhufish.
Public Msg #1052510 *Program* 23:30 02-MAR-98 *EXEMPT*
From: Spychoo
To: ** ALL **
FILE: CAR.ARJ
C.R.A.S.H by Nickz :)
Public Msg #1052968 *Program* 18:30 04-MAR-98 *EXEMPT*
From: Vead (Awarded 2048 Credits)
To: ** ALL **
FILE: car.zip
What's your latest Warez d00d?
Here's mine. An exe of Nickz's car.bas i prefer it! probably cuase it's
more chalenging!
DaveVde
aad
Public Msg #1053646 *Program* 19:51 06-MAR-98 *EXEMPT*
From: Dhufish
To: ** ALL **
FILE: sdmcg.zip
loeheolheoh:)
"Supa Dupa Mega Car Game"!:)
Just the .EXE version, should run faster, less flickery, and more
idiot-proof:)
beybyebyeyeb:)
Dhufish
Public Msg #1061589 *Program* 11:01 03-APR-98 *EXEMPT*
From: Jedd (Awarded 2048 Credits)
To: Spychoo
FILE: ten.htm
oh - okay then. [nod]
attached in ascii format, the file 'ten commandments.html'.
rename to taste.
also - the site :
www.lysator.liu.se/c/ - has some excellent examples and
pointers and discussions on c, b, bcpl, etc... superb
stuff, with a few articles written by kernigan, pike, et al.
jedd.
Public Msg #1061602 *Program* 11:29 03-APR-98 *EXEMPT*
From: Jedd (Awarded 2048 Credits)
To: Spychoo
FILE: wow.
okay .. i'm bored. this may be apparent to many since i
ramble on so readily in other sigs, during the day, but,
well, with only a p200 and a 486 to play with, a modem,
5 hours each day (not including lunch) and a 2megabit
pipe to the internet.. well, you'd be bored too.
reality.sgi.com/csp/ioccc - is the obfuscated c code contest
home page. superb place. haven't checked these things out in
years. [nod]
attached is a utility .. (c source code for same) that does
something fairly obvious, given the aesthetic of the source.
i suggest starting with numbers in the range 10-20, depending
on the power of your cpu...
jedd.
Public Msg #1061941 *Program* 13:24 04-APR-98 *EXEMPT*
From: Dinn (Awarded 2048 Credits)
To: Alibrandi
Subj: C++ arrays... erm?
Reply to #1061835
> I am asking for a name, which I presume I should put into a string/array
> and then I want to encode this array so I can flip the name backwards or
> find out what each letter is (the first is more important...) I am
> reading through arrays, but I'm still miffed...
>
> Does anyone have a function which I could use for this?
You can use a char array to represent a string. Make one by doing:
char s[200]; or
char s[]; or
char *s;
If you use one of the second two, you will have to assign memory to 's'
using malloc, when you want to use it. This is good if you don't want
to waste those 200 bytes for the whole program, if you're going to
change the size of 's', or if you want 's' to point to a string which is
already in memory.
To get a string into it, you can use cin >> s; or some sort of line
input thing. (or anything else, really). Have a look at iostream.h in
your online help, or in your book.
You can refer to each character of the string using s[0], s[1], etc.
Remember that the string will be terminated by a s[n]==0
You can also use strlen() to find out how long the string is.(Note that
this can be different to the sizeof s).
If you want to reverse it, use some sort of for loop, and another char
array to put the reversed string in. (or be clever and use the same
array).
/r
[oh. alternatively, you could use the strrev() fn, although I'm not sure
if it exists] :)
Public Msg #1075562 *Program* 00:00 20-MAY-98 *EXEMPT*
From: Dhufish (Awarded 4096 Credits)
To: ** ALL **
FILE: play.zip - PC SPEAKER 8bit wave file player:)
eloheohelohe:)
ok, it's not perfect, and it could be fairly quiet, but it's fun!:)
just type: PLAY filename eg, PLAY sample.wav
Cycle: <type in the number of times to cycle (waste time)>
if you choose 1, you'll prolly get a speedy chipmunky rendition of your
file, so try 2, 3, 4, etc until you get the speed you're after:)
byeybeyeybe:)
dhufish
aah, either use win95 or dos + DPMI driver, it doesn't like NT:)
Public Msg #1084261 *Program* 14:06 19-JUN-98 *EXEMPT*
From: Lazy (Awarded 3000 Credits)
To: ** ALL **
FILE: sb_stuff.zip
Some documents on programming the SB Pro/16/AWE32.
Includes info on DMA and IRQ handling, some source for C/Pascal/ASM
included. Hope someone finds it useful.
Cheers :)
Public Msg #1093170 *Program* 18:22 20-JUL-98 *EXEMPT*
From: Junkster (Awarded 1000 Credits)
To: ** ALL **
FILE: 16550.txt
Doc on programming the modem, very extensive and detailed with C/ASM
examples.
Cheers!
Public Msg #1100540 *Program* 01:17 14-AUG-98 *EXEMPT*
From: Nickz (3 Replies) (Awarded 1000 Credits)
To: Dhufish
FILE: active.arj
Here's a little Active demo I found by accident! :) It was coded by
Kraught in early 1996 <when it was at Narwee>.
We should have had a comp to see who could code the best Active Demo
:) It's a shame that the number in this demo is wrong :(
...NickZ.
Public Msg #1115144 *Program* 09:40 11-OCT-98 *EXEMPT*
From: Xhacker (Awarded 1000 Credits)
To: ** ALL **
FILE: win98.c
yep.. its here..
Public Msg #1115394 *Program* 03:37 12-OCT-98 *EXEMPT*
From: Necronoir (1 Reply) (Awarded 500 Credits)
To: Johnz
Subj: Video Systems
Reply to #1115275
call vesa func 4f00h and multiply the number of 64k blocks * 0x10000.
vola, you have your amount of VRAM.
Public Msg #1115617 *Program* 00:14 13-OCT-98 *EXEMPT*
From: Necronoir (Awarded 1000 Credits)
To: ** ALL **
FILE: sb16doc.txt
Here is the spec for the SB/16 and compatible audio cards, covers DSP
commands, IRQ operation and DMA
Enjoy!
I'll upload more when I find the other docs. :)
Public Msg #1252723 *Program* 09:20 01-OCT-01 *EXEMPT*
From: Bcrogers (Awarded 5000 Credits)
To: ** ALL **
FILE: pokie.zip
I Have finished writing a demo of a game i am working on called the
playing card it is a poker machine game written in VB5
Enjoy
Please Download the Attachment