Back
Close

BrainFuck part 6 - 16-bit integers

DPAmar
1,996 views

I/O operations

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

What does Print means ? print ASCII char from code N. If N is greater than 255, we won't get into the complex Unicode stuff : let's just display N modulo 255 (C)

What does Read means ? read ASCII char from input. As it is always less or equal to 255, let's say the C part is read while the D part is equal to 0 (reset)

Operation8-bit version16-bit versionComments
Write..write C (D does not matter)
Read,,>[-]<read C and reset D
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants