Help
  • How-to
  • Hot keys
  • FLEX
  • About

Content

Move camera

The camera can be moved in two different ways. The first and recomended way is to press and hold SPACE and then click and drag the camera around. The second way is to use the arrow keys.

It is also possible to zoom. Use the numpad's PLUS key to zoom in and its MINUS key to zoom out. The zoom can be reset by pressing the numpad's ZERO key.

Connect gates / Draw wires

Gate are connected using wires. Wires are draw by clicking an output or input of a gate.

Begin by placing a gate. Then move your mouse over one of the gate's inputs or outputs. You will notice that small blue rectagles appear. Click one of the blue rectangles to draw the wire.

When drawing a wire, it will be represented as a pink line. Move your mouse and press the left mouse button to draw the line as your like. Each time to press the left mouse button a new turn is added to the wire.

If you make a misstake, press DELETE to remove the latest added trun.

When you are done, press another input or output (will appeare as a blue rectangle when you move your mouse over it) at another gate; or hold CTRL and click.

Remove gates and wires

To remove a gate or a wire, simply select it by pressing it with your left mouse button, and then by pressing DELETE.

Inverting inputs and outputs (connections)

To invert a gate's input or output, move your mouse over it (a blue rectangle becomes visible). Then press your left mouse button while holding down the CTRL key on your keyboard.

Open a gate's properties

Some gates have properties that are user configurable. One such gate is the OR-gate: you can manually configure its input count.

By double clicking a gate you will open its property window, but only if the gate you double clicked is user configurable.

You can also right-click the gate to open its context menu. If the gate is configurable, the context menu will supply you with even more options.

Move gates

To move a gate, simply drag it around using your mouse.

Duplicate gates

Press the CTRL key while draging the gate to duplicate it.

Combination Function
Right Mouse Open context menu.
Double click Open gate properties.
Left Mouse
  • Add, select and move gates.
  • Draw wires by pressing a gate's connection.
CTRL+Left Mouse
  • Invert connections.
  • Duplicate gates (drag the gate).
  • End wires.
ESC Cancel / Abort
DEL
  • Remove select gate or wire.
  • Remove the last added part of a wire while drawing.
SPACE+Left Mouse Drag camera.
Arrows Move camera.
Numpad PLUS Zoom in.
Numpad MINUS Zoom out.
Numpad ZERO Reset zoom.

Introduction

The FLEX (Flexible Training Computer) processor is a programmable processor developed at Chalmers University of Technology in Sweden. Though the FLEX is only intended for educational purposes its design and instructions where infuenced by the commercial microcontroller 68HC12.

Logic Grid tries to simulate the behaviour of the FLEX processor and all of its instructions. Though not fully tested, Logic Grid seem to do this correctly.

How to program the FLEX

To program the FLEX, simply right-click it and choose "Program" from the context menu and the built-in programmer should appear.

In the programmer you can write assembly code which is assembled and sent to the processors memory when you press the "OK" button. Load the "16-bit FLEX counter" for an example of such code.

Instruction set

The FLEX processor's instruction set should be available in Swedish here.

Assembly directives

Directive Function
ORG ORG <address>

Set the program counter and the start address to the supplied value.
EQU (<label>) EQU <value>

Equtes the symbol to the supplied value.
FCB (<label>) FCB <value>(,<value>)(,<...

Forms a constant byte in the memory and sets the symbol to its memory address. Multiple values can be given.
FCS (<label>) FCS "string"

Forms multiple constant bytes in the memory from a string. The symbol will be set to the address of the first byte.
RMB (<label>) RMB <value>

Reserves the supplied number of bytes.

Logic Grid

Copyright (C) 2011 by Wronex.com. All rights reserved.

Special thanks to SteelRaven7 since I stole some code from him and I do not know which. No worries though, he doesn't minde.

Third party licenses

CodeMirror

Copyright (C) 2011 by Marijn Haverbeke

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Settings
  • Graphics

Save
  • Local storage
  • Text file

Saved grids will be accessable on this computer only.

To overwrite an old save, use the same name.

Text files are saved to your local harddrive. They can be sent using email or moved using USB drives.

Load
  • Local storage
  • Text file
  • Examples

You can only access grids saved on this computer. Can't see your files? Try www.wronex.com or wronex.com

Name Actions

Upload a text file from your harddrive.

This is a list of examples that you can load and play with.

Name

Performace

Due to low FPS the graphics settings have to lowerd in an attempt to increase performace.

This decision was made since Logic Grid was running with an FPS value lower than 20 for more than 5 seconds.

If Logic Gate is to run smoothly, an FPS value of 30 is recommended.

Local Storage

Your browser does not support local storage - an HTML5 technology. This will affect your ability to save any grid your create using this tool.

It is higly recommended that you update your browser, both since you can not use Logic Grid, and since an old browser will put your computer at risk. I highly recommend you choose Google Chrome or Firefox since they work best with Logic Grid.

Properties
Field Value
Grid Properties
  • General
  • Dependencies

This grid depends on the grids listed below; since they exist as gates.

Name Actions

FLEX Programmer
FLEX Memory Viewer

PC: SP: X: CCR:

IR:

A: B:

N: Z: V: C:

Your browser is not supported! Please download the latest version of Google Chrome or Firefox to run this software.