CircuitGizmos

Electronic Products for Creative Minds

  • Home
  • Gizmo Store/Products
  • Documentation/Datasheets
  • Projects/Libraries
  • GizmoBlog
  • Services/Contact
    • Design
    • Contact Gizmo!
  • Your Gizmo Cart
    • Your Account
You are here: Home / GizmoBlog / MMBasic Language / Screen and Graphics (VGA/composite) / PRINT @

PRINT @

PRINT @(x, y [, m]) expression

Same as the PRINT command except that the cursor is positioned at the coordinates x, y.

Example:


PRINT @(150, 45) "Hello World"


The @ function can be used anywhere in a print command.

Example:


PRINT @(150, 45) "Hello" @(150, 55) "World"


The @(x,y) function can be used to position the cursor anywhere on or off the screen. For example PRINT @(-10, 0) “Hello” will only show “llo” as the first two characters could not be shown because they were off the screen.

The @(x,y) function will automatically suppress the automatic line wrap normally performed when the cursor goes beyond the right screen margin.

If ‘m’ is specified the mode of the video operation will be as follows:

m = 0 Normal text (white letters, black background)

m = 1 The background will not be drawn (ie, transparent)

m = 2 The video will be inverted (black letters, white background)

m = 5 Current pixels will be inverted (transparent background)

VGA screen resolution is 480 horizontal by 432 vertical in modes 1-3, and 240×416 in mode 4. PAL composite is 304 by 216 and NTSC composite is 304 by 180.

See also:

BLIT

CIRCLE

CLR$

CLS

COLOR

LINE

LOCATE

MM.HPOS

MM.HRES

MM.VPOS

MM.VRES

MODE

PIXEL

POS

PRESET

PRINT

PSET

SCANLINE

SPRITE

 

 

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

A Ton of Documentation

Open all | Close all

Projects made by Gizmo, Friends, and Members

open all | close all

Recent GizmoBlog Musings

  • Altair 8800 using a ColorMax!
  • Re-energizing the ColorMax, Pt. 3

Visit us!

  • Facebook

Electronic Products for Creative Minds

CircuitGizmos is your source for electronic products that help you create your embedded projects. Here at CircuitGizmos.com you will find a friendly store filled with creative products and all of the documentation that you need to use these gizmos.

We create devices that we believe make electronics fun, but we also know that our products are used for professional designs. For decades we have designed products for commercial, military, and medical industries. Our gizmos here are great for engineers and hobbyists alike.

Copyright © 2008+ CircuitGizmos, L.L.C. All rights reserved

Image already added

Recently Viewed Products

Copyright © 2025 · Generate Pro Theme on Genesis Framework · WordPress · Log in