GithubHelp home page GithubHelp logo

gbpextension's Introduction

The GBP Extension for STOS Basic by GBP

The GBP Extension introduces a number of additional commands to the STOS Basic language for the Atari ST. Here you can find the full source code for the interpreter and the compiler version of the extension, along with a number of STOS basic example files for using the commands. See MANUAL.TXT for full instructions on how the new commands work.

Enjoy!

Neil Halliday, August 2021

gbpextension's People

Contributors

neilrhalliday avatar

Watchers

 avatar

gbpextension's Issues

Absolute addresses used in compiler extension

There are some places that will generate absolute addresses. As you certainly know, that does not work in compiler extensions:

lea .place,a0

move.l a1,(addr) ; save dest addr

move.l (addr),a2

move.w d0,playmode
move.w d1,stereo
move.b d2,espeed
move.l a0,samlength
move.l a1,samstart
move.w stereo,d0
mulu #$80,d0 ; Normalize stereo/mono mode
move.w d0,stereo
move.w #0,d0 ; Combine frequency and mode
move.b espeed,d0 ; Save frequency
move.w stereo,d1 ; Save mono/stereo $80 = mono
or.w d1,d0 ; Combine data
move.w d0,$ff8920 ; Store in DAC MODE address
move.l samstart,d0 ; Store start address
move.l samstart,d1
add.l samlength,d1 ; Create end address
move.l #$ff8902,a2 ; Get frame start HIGH byte
movep.w d0,3(a2) ; Store mid & low bytes
swap d0 ; Reverse data
move.b d0,1(a2) ; Store high byte
move.l #$ff890e,a2 ; Get frame end HIGH byte
movep.w d1,3(a2) ; Store mid & low bytes
swap d1 ; Reverse data
move.b d1,1(a2) ; Store high byte
move.w playmode,$ff8900 ; Start/stop sample

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.