# Subroutine, Stack and BCD Conversion]\(Subroutine\_Stack\_BCD\_Conversion

* [Factorial of a number using subroutine](https://github.com/sthsuyash/CSIT_Labs/blob/main/2nd_Semester/Microprocessor/8085_mp/Subroutine_Stack_BCD_Conversion/factorial.asm)
* [Sum of squares of the first n numbers](https://github.com/sthsuyash/CSIT_Labs/blob/main/2nd_Semester/Microprocessor/8085_mp/Subroutine_Stack_BCD_Conversion/sum_of_squares.asm)
* [Convert binary to BCD](https://github.com/sthsuyash/CSIT_Labs/blob/main/2nd_Semester/Microprocessor/8085_mp/Subroutine_Stack_BCD_Conversion/binary_to_BCD.asm)
* [Convert BCD to binary](https://github.com/sthsuyash/CSIT_Labs/blob/main/2nd_Semester/Microprocessor/8085_mp/Subroutine_Stack_BCD_Conversion/BCD_to_binary.asm)
* [Stack implementation and add data directly](https://github.com/sthsuyash/CSIT_Labs/blob/main/2nd_Semester/Microprocessor/8085_mp/Subroutine_Stack_BCD_Conversion/stack_implementation.asm)
* [Stack implementation and add data indirectly](https://github.com/sthsuyash/CSIT_Labs/blob/main/2nd_Semester/Microprocessor/8085_mp/Subroutine_Stack_BCD_Conversion/stack_implementation_indirect.asm)
* [Use of stack to reverse the number stored in a memory stack and store in the same memory block](https://github.com/sthsuyash/CSIT_Labs/blob/main/2nd_Semester/Microprocessor/8085_mp/Subroutine_Stack_BCD_Conversion/reverse_stack.asm)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://suyashs-organization-3.gitbook.io/csitlabs/2nd_semester/microprocessor/8085_mp/subroutine_stack_bcd_conversion.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
