Giter VIP home page Giter VIP logo

amstrad-cpc-cowsay's Introduction

CPC Cowsay

Expansion ROM for the Amstrad CPC range of computers. Provides similar functionality to the Fortune and Cowsay programs for Unix-like operating systems.

To assemble, use RASM from https://github.com/EdouardBERGE/rasm or you can download the ROM file from the Releases page.

alt text

RSX Commands

|FORTUNE

Displays a random quote from the ROM. Optionally, the quote can be written to a string variable by passing a pointer to the variable as a parameter. The variable must be initialised with a string long enough to contain the quote otherwise the quote will be truncated, to be safe the length should ideally be 255. (Probably the easiest way to do this is to use the SPACE$ function e.g. n$=SPACE$(255) followed by |FORTUNE,@n$.) The string length will automatically be reduced to match the length of the quote.

|COWSAY

Displays an ASCII-art cow with a speech bubble. If a string is passed as a parameter then that string is shown within the speech bubble. If no parameters are passed then a random quote from the ROM is shown. Because the cow is wider than 20 characters the command only works in modes 1 and 2, nothing is displayed in mode 0.

|COWTHINK

Identical to COWSAY except the speech bubble is a thought bubble.

Examples

|COWSAY,"Hello, World!"

10 n$=SPACE$(255)

20 |FORTUNE,@n$

30 PRINT n$

Quotes taken from Shlomi Fish's collection at https://www.shlomifish.org/humour/fortunes/

Original Cowsay program by Tony Monroe

amstrad-cpc-cowsay's People

Contributors

robdmob avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

latchdevel

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.