Skip to content

About

Basic Digital Logic Gates using BASIC-52. AND, OR, NOT are primary gates and NOR, NAND, XOR and XNOR are derived gates. Capable of processing 16 bits. So simple NOT of '0' would not result "1". The result will be 16 bit value. User need to truncate other bits and use only the least bit for valid and meaningful result. We can combine all into one.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

BASIC-52

LOGIC GATES

All type of digital Logic Gates using

Using INPUT for interactive mode
Using DATA and READ
Using FOR loop

We can add Keys and LEDs on PORT 1 of the computer for logic input and output display. Currently not implemented.

AND
NAND
OR
NOR
XOR
XNOR
NOT

image

AND GATE

image

NAND GATE

image

OR GATE

image

NOR GATE

image

XOR GATE

image

XNOR GATE

image

NOT GATE

image

For 16 bit input Logic Gates, the input ranges from 0 to 65535. The user can enter input values either in Decimal or Hexa Decimal format. Hexa decimal digits starting with Alphabet(A,B,C,D,E and F) should preceded with a zero. All the hexadecimal digits should end with the letter H.

Both the inputs and outputs will be displayed as a four digit hexadecimal digit XXXXH format. The user can change the format using differnt format.
PH0. will not show the leading zero and the output will be hexadecimal. Just entering PRINT will show the results in Decimal format.

About

Basic Digital Logic Gates using BASIC-52. AND, OR, NOT are primary gates and NOR, NAND, XOR and XNOR are derived gates. Capable of processing 16 bits. So simple NOT of '0' would not result "1". The result will be 16 bit value. User need to truncate other bits and use only the least bit for valid and meaningful result. We can combine all into one.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages