Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Working:
- while (text[i] != 0) {
- if ((text[i] == 13) | (currentColumn >= 80)) {
- currentLine++;
- currentColumn = 0;
- gpu_clearline(currentLine);
- writeIO(gpuSlot, GPUDRV_IOADR_LINESEL, currentLine);
- }
- if (text[i] != 13) {
- writeIO(gpuSlot, GPUDRV_IOADR_DATA + currentColumn, text[i]);
- currentColumn++;
- }
- i++;
- }
- Not working:
- while (cont) {
- if ((text[i] == 13) | (currentColumn >= 80)) {
- currentLine++;
- currentColumn = 0;
- gpu_clearline(currentLine);
- writeIO(gpuSlot, GPUDRV_IOADR_LINESEL, currentLine);
- }
- if ((text[i] != 0) & (text[i] != 13)) {
- writeIO(gpuSlot, GPUDRV_IOADR_DATA + currentColumn, text[i]);
- currentColumn++;
- }
- if (text[i] == 0) {
- cont = 0;
- }
- i++;
- }
Advertisement
Add Comment
Please, Sign In to add comment