I've been typing
DB 13, 10, 'hello planet', 0
for a lengthy period without wondering what the 13, the 10 and the 0 were for.Oracle Hospitality OPERA Cloud Services are a cloud-based, mobile-enabled platform for next-generation hotel management. Based on OPERA, the leading enterprise solution suite for the hospitality industry, OPERA Cloud offers an intuitive user interface, comprehensive functionality for all areas of.
I lately noticed that performing:
produced the exact same result, therefore I'm wondering what the initial parameters are usually for and whether is certainly a good idea to basically create it this method. Could someone create a fast description on this? (I imagine chain declarations would become the topic)
lisovaccarolisovaccaro7,5797979 gold badges216216 gold badges363363 bronze badges
3 Solutions
It's the ASCII CR/LF (buggy come back/line give food to) series, used for improving to the starting of the following range.
History session:On previous teletype machines, carriage return did specifically that, it came back the carriage (printing head) to the begin of the current collection, while line feed advance the document so that publishing would happen on the following range.
And your two examplesshouldn'tproduce the exact same outcome. If your cursor is certainly not really at the begin of a series when you output the string without
CR/LF
, theHello world
will show up mid-line somewhere and, also if youdostart at the begin of a line, the edition withCR/LF
should first proceed the cursor down one row.The no at the end is merely a terminator for the thread. Some early systems used other heroes like the
$
in the first BIOS:which made it instead a discomfort to output the
$
sign to the gaming console :-)The terminator is definitely right now there because your string output will almost certainly end up being created in terms of a character output, like as the pseudo-asm-code:
paxdiablopaxdiablo655k182182 gold badges13001300 sterling silver badges17061706 bronze badges
13 can be the decimal value of CR ASCII code (buggy return), 10 is the decimal worth of LF ASCII code (line give food to), 0 is definitely the terminating zero for the chain.
The idea behind this constant is usually to modify to the following line before publishing
dasblinkenlightdasblinkenlighthello there globe
. No terminator is usually necessary for the printing subroutine to understand when to end publishing. This is identical to null terminating of D guitar strings.625k6262 yellow metal badges835835 silver badges12381238 bronze badges
![Opera Opera](/uploads/1/2/5/7/125770973/118424819.jpg)
adyady