Código fuente del sexto CD de Hot Shareware (2 de 2)

Source code from the sixth Hot Shareware CD (2 of 2)

🌐 Read this in English

💿 Hot Shareware 06 · Marzo 1996 · Pro: Lenguaje Assembler · 8 ZIP

En 1995 se aprendía a programar leyendo el código de otros: C, ensamblador, Turbo Pascal, Delphi 1 y Clipper que circulaban por las BBS, del CD 06 de Hot Shareware (marzo de 1996). De cada ZIP mostramos la ficha de Hobby Press y las primeras líneas de su archivo principal.

Todas las hojas: 1 · 2

SCROLITE

SCROLITE.ZIP → SCROLITE.ASM

Utilidad que convierte el led de la tecla Scroll Lock de forma que simule la del disco duro. Util cuando éste no la tiene. Incluye código fuente en Ensamblador.

PAGE  59,132
;+-----------------------------------------------------------------------------+
;| F U N K Y  C H I C K E N  U T I L I T I E S  v1.00                          |
;| (c) 1995 Michael Grundy                                                     |
;|                                                                             |
;|  Update History:            SCROLITE.ASM                                    |
;|  ---------------------------------------------------------------------      |
;|  DATE:       AUTHOR:        Description of Change:                          |
;|  ---------------------------------------------------------------------      |
;|  12/15/95    M. Grundy      Original version. Figured out how to light the  |
;|                             keyboard lights directly.                       |
;+-----------------------------------------------------------------------------+
;| This program is not and will not be warrantied, guaranteed, or supported in |
;| any way. The Author (me) is not liable culpable or even going to feel bad   |

SMIX

SMIX121.ZIP → SMIX.PAS

SMIX v1.21. Librería Turbo Pascal en modo real que permite reproducir hasta 8 sonidos a la vez. Requiere Sound Blaster o superior.

{       SMIX is Copyright 1995 by Ethan Brodsky.  All rights reserved.       }
unit SMix; {Version 1.21}
 {$X+} {$G+} {$R-}
  interface
    const
      BlockLength   = 512;      {Size of digitized sound block               }
      LoadChunkSize = 2048;     {Chunk size used for loading sounds from disk}
      Voices        = 8;        {Number of available voices                  }
    type
      PSound = ^TSound;
      TSound =
        record
          XMSHandle: word;
          StartOfs:  LongInt;

SMIX

SMIXW124.ZIP → SMIX.C

SMIX, Ethan Brodsky. Librería que permite reproducir hasta 8 sonidos a la vez. Requiere Sound Blaster o superior. Incluye código fuente en C. Para Watcom C DOS/4GW.

/*      SMIXW is Copyright 1995 by Ethan Brodsky.  All rights reserved      */
/* █ smix.c v1.24 █████████████████████████████████████████████████████████ */
#define TRUE  1
#define FALSE 0
#define ON  1
#define OFF 0
#define BLOCK_LENGTH    512   /* Length of digitized sound output block     */
#define VOICES          8     /* Number of available simultaneous voices    */
#define VOLUMES         64    /* Number of volume levels for sound output   */
typedef struct
  {
    signed   char *soundptr;
    unsigned long soundsize;
  } SOUND;

Texture

TEXT_ENG.ZIP → TEXTURE.C

Texture v1.0, Lee Lorenz. Programa que dibuja un polígono de 4 lados con textura a partir de un bitmap. Incluye código fuente en C.

/*
 *    TEXTURE.C    Version 1.0   by Lee Lorenz      llorenz@delphi.com
 *
 *   First, Please excuse this mess.
 *
 *  Next, Welcome to high-speed image processing... My desire was to
 *   rotate/scale a bitmap in real-time, and this was the result.
 *   There were plenty of "examples" of texture mapping, in obfuscated
 *   highly optimized assembly, but even the "C" and Pascal examples left
 *   alot to be desired; after all, I wanted to have more freedom to display
 *   images, and didn't want to bother with the trigonometry. With the simple
 *   idea of "shooting" a line (Bresenham-style) through a source bitmap, I
 *   developed this technique contained in DrawTexture. It may not be original,
 *   but I haven't seen it used anywhere else. It can even be augmented with

Preguntas y respuestas sobre la programación en Turbo Pascal

TSFAQP29.ZIP → FAQPAS.TXT

Preguntas y respuestas sobre la programación en Turbo Pascal. Trata los temas de la programación orientada al objeto, modo protegido, Turbo Vision y Delphi.

From ts@uwasa.fi Mon Jan 1 00:00:00 1996
Subject: FAQPAS.TXT contents
                             Copyright (c) 1993-1996 by Timo Salmi
                                               All rights reserved
FAQPAS.TXT Frequently (and not so frequently) asked Turbo Pascal
questions with Timo's answers. The items are in no particular order.
You are free to quote brief passages from this file provided you
clearly indicate the source with a proper acknowledgment.
Comments and corrections are solicited. But if you wish to have
individual Turbo Pascal consultation, please post your questions to
a suitable Usenet newsgroup like news:comp.lang.pascal.borland. It
is much more efficient than asking me by email. I'd like to help,
but I am very pressed for time. I prefer to pick the questions I
answer from the Usenet news. Thus I can answer publicly at one go if

VBCalc

VBCALC.ZIP

VBCalc. Control para Visual Basic que evalua expresiones aritméticas complejas en tiempo de ejecución. Incluye fichero de ayuda y una demo.

VB Diner

VBDINER.ZIP → README.TXT

VB Diner. Programa en Visual Basic que contiene una demostración de las técnicas de arrastrar y soltar y MDI.

VB Diner
by Steve Hoag
A demonstration of drag and drop and MDI techniques as featured in the
August issue of VBTech Journal.
To install: from the Program Manager File | Run menu, type A:\SETUP
You will be presented with a choice of installations: the executable
file only, or the .EXE plus the complete source code. The source code
requires Visual Basic 3.0.
Note: This assumes that you are a Visual Basic programmer and that you have
VB 3.0 on your system in order to run the source code.  Likewise, the
.EXE requires VBRUN300.DLL, which you should already have.  If you don't
have VB and you just want to play with the .EXE, you'll need to get a copy
of VBRUN300.DLL - I think it's available on the MSBASIC forum on Compuserve.
The setup will also install a uninstall program so that you can remove

VB Profiler

VBPROF.ZIP → PROFDAT.BAS

VB Profiler. Utilidad que testea la velocidad y el proceso de aplicaciones en Visual Basic. Requiere VBRUN300.DLL.

Option Explicit
Dim protbs                  As String * 1
Dim FirstTick               As Long
Dim fastFile                As Integer
Declare Function ProGetTickCount Lib "user" Alias "GetTickCount" () As Long
Sub vbfProfileIn (fName As String, fArg As String)
Dim Ticks As Long
Dim temp$
    If FirstTick = 0 Then
        If Dir$("vbprof.dat") <> "" Then Kill "vbprof.dat"
        FirstTick = ProGetTickCount()
        protbs = Chr$(9)
        fastFile = FreeFile
        Open "vbprof.dat" For Append As fastFile

Los programas son de sus autores: aquí solo los reseñamos. Si tienes el CD, el archivo está en la ruta indicada; el CRC32 sirve para comprobar que tu copia está entera.

💿 Todo el CD 06

¿Tenías este CD o la revista? Cuéntanos en el grupo de Telegram: Grupo de Telegram

¿Te gustó? Síguenos en las redes

Cada semana publicamos cosas nuevas: no te las pierdas.

YouTubeFacebookXInstagramTelegram