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) / LOCATE

LOCATE

LOCATE x, y

Positions the cursor to a location in pixels and the next PRINT command will place its output at this location. Only affects the video output.

LOCATE example output.


1
2
3
4
5
6
7
8
9
MODE 3
CLS
 
 
FOR a = 1 to 80
  LOCATE RND()*480,RND()*432
  COLOR RND()*6+1
  PRINT "Hi Mom!"
NEXT a


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

MM.HPOS

MM.HRES

MM.VPOS

MM.VRES

MODE

PIXEL

POS

PRESET

PRINT

PRINT @

PSET

SCANLINE

SPRITE

 

 

Comments

  1. John McDonough says

    January 24, 2021 at 9:38 pm

    RE: CURSOR X,Y
    hi. I am a little disoriented. Having fun with my new Retro this weekend. For several weeks before purchase I had been using MMBASIC dos version. I wrote several programs using the ‘ CURSOR x,y ‘ command. Seems like that didn’t make the cut for this BASIC.
    Is there a replacement command. Does this machine have an “80 x 24 text mode” or is it always in a bitmap state.

    Reply
    • robert says

      January 25, 2021 at 9:13 pm

      The CMM2 VGA screen is always a bitmap.

      With the right combination of screen mode and font 80×24 is doable.
      You would need to use a subroutine to locate characters at appropriate
      screen locations.

      Reply

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 © 2021 · Generate Pro Theme on Genesis Framework · WordPress · Log in