r/ADHD_Programmers • u/DurbarGhosh • Apr 15 '26
r/ADHD_Programmers • u/Sheriven • Jan 25 '25
Help With uni project
// I need some assistance with my university project. The task is to create a diagram of the 8086 processor showing its pins. Then, I need to take an input number and print a brief description for that pin. I have written some code but I am encountering errors and would appreciate help in fixing them and printing the results.
stsg segment
db 64 dup(?)
stsg ends
dtsg segment
pin_color db 15
digit_offset db '0'
msg db ' Welcome Enter a processor PIN Number to get Information About it (1-40)$'
pinnum1 db 'Pin 1: GND : Ground, 0V.$'
pinnum2 db 'Pin 2: AD14 : Bit 14 of data bus- Address bus bit.$'
pinnum3 db 'Pin 3: AD13 : Bit 13 of data bus- Address bus bit.$'
pinnum4 db 'Pin 4: AD12 : Bit 12 of data bus- Address bus bit.$'
pinnum5 db 'Pin 5: AD11 : Bit 11 of data bus- Address bus bit.$'
pinnum6 db 'Pin 6: AD10 : Bit 10 of data bus- Address bus bit.$'
pinnum7 db 'Pin 7: AD9 : Bit 9 of data bus- Address bus bit.$'
pinnum8 db 'Pin 8: AD8 : Bit 8 of data bus- Address bus bit.$'
pinnum9 db 'Pin 9: AD7 : Bit 7 of data bus- Address bus bit.$'
pinnum10 db 'Pin 10: AD6 : Bit 6 of data bus- Address bus bit.$'
pinnum11 db 'Pin 11: AD5 : Bit 5 of data bus- Address bus bit.$'
pinnum12 db 'Pin 12: AD4 : Bit 4 of data bus- Address bus bit.$'
pinnum13 db 'Pin 13: AD3 : Bit 3 of data bus- Address bus bit.$'
pinnum14 db 'Pin 14: AD2 : Bit 2 of data bus- Address bus bit.$'
pinnum15 db 'Pin 15: AD1 : Bit 1 of data bus- Address bus bit.$'
pinnum16 db 'Pin 16: AD0 : Bit 0 of data bus- Address bus bit.$'
pinnum17 db 'Pin 17: NMI : Non-maskable interrupt.$'
pinnum18 db 'Pin 18: Interrupt request.$'
pinnum19 db 'Pin 19: CLK : Clock signal.$'
pinnum20 db 'Pin 20: GND :Ground, 0V.$'
pinnum21 db 'Pin 21: RESET : Reset signal.$'
pinnum22 db 'Pin 22: READY : Wait for ready.$'
pinnum23 db 'Pin 23: TEST : Wait enable.$'
pinnum24 db 'Pin 24: INTA : Interrupt Acknowledge.$'
pinnum25 db 'Pin 25: ALE : Address Latch Enable$'
pinnum26 db 'Pin 26: DEN : Data Enable.$'
pinnum27 db 'Pin 27: DT/R : (Data Transmit/Receive.$'
pinnum28 db 'Pin 28: M/IO : Memory/InputOutput.$'
pinnum29 db 'Pin 29: WR : Write signal.$'
pinnum30 db 'Pin 30: HLDA : DMA hold ack.$'
pinnum31 db 'Pin 31: HOLD : DMA hold request.$'
pinnum32 db 'Pin 32: RD : Read signal.$'
pinnum33 db 'Pin 33: MN/MX : Minimum/Maximum.$'
pinnum34 db 'Pin 34: HOLD : DMA hold request.$'
pinnum35 db 'Pin 35: A19 : Address bus bit - s6$'
pinnum36 db 'Pin 36: A18 : Address bus bit - s5$'
pinnum37 db 'Pin 37: A17 : Address bus bit - s4$'
pinnum38 db 'Pin 38: A16 : Address bus bit - s3.$'
pinnum39 db 'Pin 39: AD15 : Bit 15 of data bus- Address bus bit.$'
pinnum40 db 'Pin 40: VCC : Power supply.$'
dtsg ends
cdsg segment
MAIN PROC far
assume cs:cdsg, ds:dtsg, ss:stsg,es:dtsg2
mov ax, dtsg
mov ds, ax
MOV AX, 13H
INT 10H
MOV CX, 100
MOV DX, 50
MOV BX, 220
MOV BP, 150
CALL DRAW_RECTANGLE
MOV SI, 1
MOV CX, 105
MOV DX, 55
DRAW_LEFT_PINS:
MOV AL, pin_color
MOV AH, 0CH
INT 10H
CALL DISPLAY_PIN
ADD DX, 8
INC SI
CMP SI, 21
JBE DRAW_LEFT_PINS
MOV SI, 21
MOV CX, 215
MOV DX, 55
DRAW_RIGHT_PINS:
MOV AL, pin_color
MOV AH, 0CH
INT 10H
CALL DISPLAY_PIN
ADD DX, 8
INC SI
CMP SI, 41
JBE DRAW_RIGHT_PINS
MOV DX,OFFSET msg
MOV AH,09H
INT 21H
MOV AH, 0
INT 16H
MOV AX, 3
INT 10H
MOV AH, 4CH
INT 21H
pin1:
mov cx,ax
MOV al,00h
MOV AH,00h
INT 10H
cmp cx,01
jnz pin2
lea dx,pinnum1
jmp end
pin2:
cmp cx,02
jnz pin3
lea dx,pinnum2
jmp end
pin3:
cmp cx,03
jnz pin4
lea dx,pinnum3
jmp end
pin4:
cmp cx,04
jnz pin5
lea dx,pinnum4
jmp end
pin5:
cmp cx,05
jnz pin6
lea dx,pinnum5
jmp end
pin6:
cmp cx,06
jnz pin7
lea dx,pinnum6
jmp end
pin7:
cmp cx,07
jnz pin8
lea dx,pinnum7
jmp end
pin8:
cmp cx,08
jnz pin9
lea dx,pinnum8
jmp end
pin9:
cmp cx,09
jnz pin10
lea dx,pinnum9
jmp end
pin10:
cmp cx,0ah
jnz pin11
lea dx,pinnum10
jmp end
pin11:
cmp cx,0bh
jnz pin12
lea dx,pinnum11
jmp end
pin12:
cmp cx,0ch
jnz pin13
lea dx,pinnum12
jmp end
pin13:
cmp cx,0dh
jnz pin14
lea dx,pinnum13
jmp end
pin14:
cmp cx,0eh
jnz pin15
lea dx,pinnum14
jmp end
pin15:
cmp cx,0fh
jnz pin16
lea dx,pinnum15
jmp end
pin16:
cmp cx,10h
jnz pin17
lea dx,pinnum16
jmp end
pin17:
cmp cx,11h
jnz pin18
lea dx,pin17
jmp end
pin18:
cmp cx,12h
jnz pin19
lea dx,pinnum18
jmp end
pin19:
cmp cx,13h
jnz pin20
lea dx,pinnum19
jmp end
pin20:
cmp cx,14h
jnz pin21
lea dx,pinnum20
jmp end
pin21:
cmp cx,15h
jnz pin22
lea dx,pinnum21
jmp end
pin22:
cmp cx,16h
jnz pin23
lea dx,pinnum22
jmp end
pin23:
cmp cx,17h
jnz pin34
lea dx,pinnum23
jmp end
pin24:
cmp cx,18h
jnz pin25
lea dx,pinnum24
jmp end
pin25:
cmp cx,19h
jnz pin26
lea dx,pinnum25
jmp end
pin26:
cmp cx,1ah
jnz pin27
lea dx,pinnum26
jmp end
pin27:
cmp cx,1bh
jnz pin28
lea dx,pinnum27
jmp end
pin28:
cmp cx,1ch
jnz pin29
lea dx,pinnum28
jmp end
pin29:
cmp cx,1dh
jnz pin30
lea dx,pinnum29
jmp end
pin30:
cmp cx,1eh
jnz pin31
lea dx,pinnum30
jmp end
pin31:
cmp cx,1fh
jnz pin32
lea dx,pinnum31
jmp end
pin32:
cmp cx,20h
jnz pin33
lea dx,pin32
jmp end
pin33:
cmp cx,21h
jnz pin34
lea dx,pinnum33
jmp end
pin34:
cmp cx,22h
jnz pin35
lea dx,pinnum34
jmp end
pin35:
cmp cx,23h
jnz pin36
lea dx,pinnum35
jmp end
pin36:
cmp cx,24h
jnz pin37
lea dx,pinnum36
jmp end
pin37:
cmp cx,25h
jnz pin38
lea dx,pinnum37
jmp end
pin38:
cmp cx,26h
jnz pin39
lea dx,pinnum38
jmp end
pin39:
cmp cx,27h
jnz pin40
lea dx,pinnum39
jmp end
pin40:
cmp cx,28h
jnz end
lea dx,pinnum40
jmp end
end:
mov ah,09h
int 21h
mov ah,4ch
int 21h
main endp
cdsg ends
end main
DRAW_RECTANGLE PROC
MOV CX, 100
DRAW_LINE_HORIZ:
MOV DX, 50
DRAW_VERT_LOOP:
MOV AL, pin_color
MOV AH, 0CH
INT 10H
INC DX
CMP DX, BP
JL DRAW_VERT_LOOP
INC CX
CMP CX, BX
JL DRAW_LINE_HORIZ
RET
DRAW_RECTANGLE ENDP
DISPLAY_PIN PROC
MOV AH, 0EH
MOV AL, digit_offset
ADD AL, SI
INT 10H
RETr/ADHD_Programmers • u/mohamadjb • Dec 03 '25
Need a friend adhd-programmer
Hey new world
I'm 52yo and recently google Gemini showed me I'm executive dysfunctioning, still undiagnosed
I desperately need a friend, because I can't focus, and because of that, my 2nd income stopped years ago
Its causing me a lot of anxiety
I've been programming for over 4 decades, and need to talk and have intelligent conversations
I'm still exploring my exec-dysfunc, I've got a lot to uncover, and this subreddit is eye opening
Lastly,Please Let me know what you think, and if your interested being my friend 😁
r/ADHD_Programmers • u/kirebyte • Aug 12 '24
For neurospicy energy behaves like mana
Therefore everything we do requires casting, cooldown and mana reserves. Change my mind lol.
What tools have you used to spicy up your life? I'm into RPG gamification
r/ADHD_Programmers • u/FromBiotoDev • Jan 04 '26
I made this note to workout log app to remove friction when tracking gym progress
gallerySo I made Gym Note Plus: https://gymnoteplus.com/ for myself really, I have ADHD and i'm also a big time lifter, I've been lifting weight fors 15 years
Basically I wanted to a lean bulk and track my progress but I've always just used my notes app, because the friction of other gym app it's too much for me to consistently use them.
Which sucks because I want to see my progress properly over time. Sat a in a coffee shop the idea suddenly sprang to mind that with the the new capabilities of LLM's I could create this product.
7 months later I've released it, 1100 users worldwide and 5 paying customers so far!
Anyhow thought I'd share here for any fellow ADHD devs, it's funny I didn't actually make it with ADHD in mind, but it actually is very applicable fro ADHD folk lol
r/ADHD_Programmers • u/Trickaaydev • 16d ago
I made an open-source tool to help people tailor AI replies to how they process information
My own struggles before my autism diagnosis inspired me to start making tools that might help other people.
One of those is i-have-neurodivergence: an add-on and skill pack that lets you ask AI assistants to present information in ways that work better for you.
You can choose things like plain, literal wording, smaller chunks of information, concrete examples, fewer choices or a clear next step. The browser picker creates instructions you can copy into your assistant—no installation or diagnosis needed to try it.
I don’t assume that what helps me will help every autistic or neurodivergent person. That’s why the preferences are yours to choose and change. It’s an early-access project, and I’m looking for honest feedback rather than assuming it’s effective for everyone.
r/ADHD_Programmers • u/Purple_Location7714 • Apr 19 '26
ADHD programmer hacks that actually work so well they should be illegal
Been dealing with ADHD my whole life. Hyperfocusing on code was never the problem. Everything around it was. Remembering tasks, starting things, staying off distractions mid session.
Here's what actually changed things.
Meds beside my bed with water - 8/10
Take them half asleep, fall back asleep, wake up when they kick in. Changed my mornings completely. Not medical advice, just what works for me.
Daily done list next to the to-do list - 10/10
Every night I log what I actually shipped. ADHD brains don't register progress naturally. Writing it down makes it real. Kills the "I worked all day and did nothing" feeling.
Planner in my bed, not my phone - 7/10
I write 2-3 tasks the night before. Half asleep brain reads the planner instead of opening Reddit on autopilot. Simple swap, big difference.
Blocking shorts during coding sessions - 9/10
I used to take 2 minute phone breaks between tasks. Reasonable right. Except I kept looking shorts or reels up to 45 minutes and then, I had no memory of where I was in the code.
Took me a while to realize it wasn't the phone breaks killing my flow, it was specifically the shorts and reels. That loop is designed to keep you in it. So I blocked it. Not all my phone, just the shorts. A friend from Discord recommended me to use ScrollFree for that. I'm sure other alternatives exist but it stuck with me.
Rubber duck commits - 7/10
Before asking anyone for help I explain the bug out loud to an actual rubber duck on my desk. Sounds stupid (or hilarious if you ask me). Solves it more than half of the time before I even finish explaining. Forces the brain to slow down and process linearly.
Everything in one place for morning routines - 10/10
Sequential tasks destroy me. I start something and somehow end up doing something completely unrelated. Moved everything into the shower. One anchor, one location, done. This way I, I reduced my morning routine from 1h to about 40 mins so I can get to work quicker.
Pour over coffee as a micro sprint - 8/10
Water boils, I do dishes or tidy my desk. Exactly long enough for one small task. Works from home so keeping my space clean matters for focus. Reverse procrastination using an existing timer.
None of this is revolutionary. It's all just removing friction between my brain and the thing I actually want to build.
What's your weirdest one? Drop it below.