BrainFuck part 6 - 16-bit integers

DPAmar
3,212 views

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

Move operations

Reminder : N = [ABCD] with A=B=0 and N = 256*D + C, with cursor on C

What does Move left means ? Go to previous memory cell. With our 4-cell-long memory integers, it means move 4 times.

What does Move right means ? Go to next memory cell. With our 4-cell-long memory integers, it means move 4 times.

Operation8-bit version16-bit versionComments
Move left<<<<<Move 4 times
Move right>>>>>Move 4 times

Current operation map

Operation8-bit version16-bit versionComments
Write..write C (D does not matter)
Read,,>[-]<read C and reset D
Move left<<<<<Move 4 times
Move right>>>>>Move 4 times
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content