Skip to content

PicoBlaze™

This software and all the accompanying files are provided 'as is' and without any warranties expressed or implied including but not limited to implied warranties of merchantability and fitness for a particular purpose. In no event will the author be liable for any damages whatsoever (including without limitation, damages for loss of business profits, business interruption, loss of business information, or any other pecuniary loss) arising out of the use or inability to use this product.

PicoBlaze™ development tool set

pBlazASM on BitBucket

Other tools

Opbasm Newer more advanced tools, with similar functions, but more advanced.

Historical files on the core

VSCODE highlighter

In vscode search in extensions for mtx-psm, or VSCODE Marketplace Link

PicoBlaze™ Example code

multiply :

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
; 8x8 -> 16 bit, input s0 and s1, result in s3..s2
multiply:
    MOVE    s2, 0           // clear product
    MOVE    sF, 8           // count = 8
.loop:
    SR0     s0              // test multiplier bit
    SKIP    NC              // skip if 0
    ADD     s2, s1          // 1 => product += multiplicant

    SRA     s2              // product /= 2
    SRA     s3              // move product as 16 bit

    SUB     sF, 1           // count -= 1
    JUMP    NZ, .loop       // repeat until 0

    RET

Other examples:

Example: