That's because it can't invent anything new that it hasn't seen already, and it doesn't understand anything. All it does is remix text that it has come across on the Internet.
( Shhhh!!! You're not supposed to actually say it!)
This is demonstrably not true. Just come up with a description of a ...
Search found 6 matches
- Tue Mar 28, 2023 4:45 pm
- Forum: Programming
- Topic: ChatGPT: ASCII to decimal conversion
- Replies: 68
- Views: 19450
- Tue Mar 28, 2023 6:35 am
- Forum: Programming
- Topic: ChatGPT: ASCII to decimal conversion
- Replies: 68
- Views: 19450
Re: ChatGPT: ASCII to decimal conversion
This is a first try by GPT-4:
; Input: ASCII character representing a hexadecimal digit in the A register
; Output: Corresponding numeric value in the A register, or $FF if not a valid hex digit
ORA #$20 ; Make sure the input is lowercase (handles both uppercase and lowercase hex digits)
CMP ...
; Input: ASCII character representing a hexadecimal digit in the A register
; Output: Corresponding numeric value in the A register, or $FF if not a valid hex digit
ORA #$20 ; Make sure the input is lowercase (handles both uppercase and lowercase hex digits)
CMP ...
- Sun Dec 26, 2021 7:47 am
- Forum: Programming
- Topic: Christmas Challenge
- Replies: 36
- Views: 11106
Re: Christmas Challenge
This is the 44 byte C64 entry that assembles to 46 byte executable:
line = 2
* = $304 - (end - next_line)
next_line:
lda #'*'
ldx line
ldy tab_c,x
finish: bmi finish
ldx #12
next_char:
sta $400+24*40+19,y
sta $400+24*40+19-12,x
dex
dey
bpl next_char
jsr $e8ec
inc line
jmp next_line ...
line = 2
* = $304 - (end - next_line)
next_line:
lda #'*'
ldx line
ldy tab_c,x
finish: bmi finish
ldx #12
next_char:
sta $400+24*40+19,y
sta $400+24*40+19-12,x
dex
dey
bpl next_char
jsr $e8ec
inc line
jmp next_line ...
- Mon Dec 20, 2021 6:47 am
- Forum: Programming
- Topic: Christmas Challenge
- Replies: 36
- Views: 11106
Re: Christmas Challenge
C64, asm, 46 bytes.
- Fri Aug 06, 2021 4:22 am
- Forum: Programming
- Topic: tiny_printf_6502
- Replies: 3
- Views: 1059
tiny_printf_6502
Hi folks.
Working on a recent asm project I had the need for a flexible way of printing text strings. All the usual approaches made me impatient, so I put together a macro/function combination that basically makes it possible to use syntax close to C printf()'s. Some examples:
lda #42
sta value ...
Working on a recent asm project I had the need for a flexible way of printing text strings. All the usual approaches made me impatient, so I put together a macro/function combination that basically makes it possible to use syntax close to C printf()'s. Some examples:
lda #42
sta value ...
- Fri Aug 06, 2021 3:52 am
- Forum: Programming
- Topic: Counting cycles
- Replies: 7
- Views: 1157
Re: Counting cycles
sim65 from cc65 package will count cycles when started with -c or --cycles.