A list of puns related to "Symbolic Assembly Program"
Link here. My primary interest was just in producing something akin to a "calculator" for all of the major symbolic logics. I stopped for the time being at propositional and first-order logic (though left the code open to include higher-order logics, modal logic, etc.) because I don't have time to dick with projects when they're not turning a profit.
I'm learning eZ80 assembly to make more complex programs on my calculator and I'm wondering if it's possible to run Basic code such as Input
or Menu(
and then use the output somewhere else. If this is not possible I will try to find another solution.
So firstly, I know one of the 3rd party math libraries already has a function for this -- I'm thinking of doing it purely for the educational value, not for the value of the program itself.
Secondly, I'm very new to Python, but only kind of new to programming. My first experience with programming was using Matlab for lab assignments in a linear algebra class a couple years ago, then I had a digital logic design course, which, while it didn't teach me programming, did teach me how to build up complex algorithms from really simple building blocks. My main experience is from an "Introduction to Programming with C++" course last year, plus a course on computer architecture and programming in MIPS assembly code last semester (I'm a EE major and all of those are required courses for my degree). I just started an introduction to the mathematics of data science course ( I'm a data science minor) that includes using Python to solve some of the math problems. Learning more programming is a major part of the reason I have a data science minor (partly because I like programming and CS in general and partly because it's a useful and marketable skill), so I was looking for additional programming projects I can do on the side to increase my programming knowledge.
One of the homework assignments due next week for my class is to write a program in Python to take the gradient. I'm sure the professor is expecting us to use the derive function from the numpy library, but it got me curious about how to write such a function myself and figured it wouldn't be that hard since differentiating elementary functions is purely algorithmic.
But as I thought about it, I realized it would be kind of complicated because I'd need some way to categorize the different types of functions and determine which differentiation rules to apply to which types of functions. Even if I limit the inputs to being any binary combination of just the 4 main types of elementary functions (polynomial, trig, exponential, logarithmic) using the 4 arithmetic operators, that's a lot of options and would be of rather limited use. The obvious (and ugly) method would be to use a bunch if if/else with a separate algorithm for each combination type, but that would be quite inefficient and poor programming practice in general, plus it wouldn't generalize to having a theoretically infinite number of combinations.
The better option would be to use some kind of tree structure (and I really ought to lear
... keep reading on reddit β‘Table Manners: The Physics-Based Dating Game
Tomb Raider VI: The Angel of Darkness
Totally Accurate Battle Simulator
Others:
AGON - The Lost Sword of Toledo
Beholder_2 **Might keep
Control Ultimate Edition (GOG)
[Dragon Age Inquisition (Origin)](https://st
... keep reading on reddit β‘Hi,
I'm trying to save the contents currently written in the console window to a buffer. As far as I understand (and please correct me if I'm wrong), I need the ReadConsoleOutputCharacter Win32 API function for this. However, when invoking it, I get told that the symbol is undefined. In the same program, invoking another function like WriteConsole works.
To investigate, I checked the Smallwin.inc file that comes with Irvine library, and for some reason the function isn't prototyped in there. It's strange because the function is listed in Table 11-2 of the book, the book explicitly says that all Win32 functions are supported by the Irvine library, and Smallwin.inc even prototyped the Write version of this very function!
Could someone help me figure out how I can use this function, maybe by adding the appropriate prototype to Smallwin.inc, or by including something else to my project since I'm currently only including Irvine32.inc (which in turn includes Smallwin.inc).
Writing the code using Visual Studio Community 2019, with the Irvine32 library on MASM.
Thanks in advance!
Hi everyone, I recently learnt how to write a "hello world!" program in x86 assembly.
EAX is where syscall number is placed (4 for write syscall and 1 for exit syscall)
EBX is where fd is placed for syscall and it is also the register where exit code '0' is placed before calling exit syscall
ECX is where string pointer is placed and EDX is where len of the string to print is placed.
Who decides what registers EAX, EBX, ECX, EDX is used for?
I mean how does kernel know what to do with these registers?
Is this notation same for every program as well (like we should only use ECX for storing first string pointer and EDX for only storing length of how many bytes to print)?
A little more detail. Right now I have an excel sheet that asks the user about 100 questions. Some yes/no, numerical inputs for calculations and other questions for product options. I take this data and use VBA to generate a BOM based on the inputs and create a quote sheet. I am a mechanical engineer so I have not done much programming outside of VBA and excel. Are there any languages or software I can be using to make this more user friendly and have a better U/I? My company is pleased with how this turned out and streamlined this products quoting process so we will be building more in the future so I would like to start looking into things now to start building a foundation of knowledge.
I have an assembly of parts (CAD and engineering drawings) and I want to upload interactive drawings on the browser so that end users can drag parts in and out of the assembly. It doesn't have to actually be engineering drawings; it could be 3D models/CAD. But I think creating a functional interactive engineering drawing would be a lot easier than an interactive 3D model.
EDIT: Actually, the engineer drawing program doesn't really even have to allow the user to drag parts in and out. If the engineer drawing program allowed users to input and change dimensions of selected parts on the page, that would be amazing.
Preferably, it would be nice if the engineer drawing browser program imported dxf/dwg files so I wouldn't have to recreate the drawings all over again, but if not that's okay. I also would want the end user to view the drawings without logging in.
The CAD and engineering drawings I made are from SolidWorks but I don't mind having to convert them into a different file type if necessary. I already tried looking into SolidWorks Composer/3D PDF/Autodesk Viewer/EDrawings but none of them allowed the user to move parts successfully. Tried asking on the SolidWorks subreddits/forums, still no luck. So now I am just going to create simple interactive 2D engineering drawings instead.
Any help is greatly appreciated,
Hi all,
I am creating a checkerboard program in which the white tiles stay the same color but the colored tiles switch to each of the 16 4-bit colors after 500 ms. The following is the code that I have:
>INCLUDE Irvine32.inc
>
>SetColor PROTO forecolor:BYTE, backcolor: BYTE
>
>WriteColorChar PROTO char:BYTE, forecolor:BYTE, backcolor:BYTE
>
>PrintRowOdd PROTO color:BYTE
>
>PrintRowEven PROTO color:BYTE
>
>.data
>
>rows = 8
>
>columns = 8
>
>color BYTE ?
>
>.code
>
>main PROC
>
>mov ecx, 16
>
>mov color,0
>
>L1:
>
>push ecx
>
>mov ecx, rows/2
>
>L2:
>
>INVOKE PrintRowOdd, color
>
>call Crlf
>
>INVOKE PrintRowEven, color
>
>call Crlf
>
>loop L2
>
>mov eax, 500
>
>call Delay
>
>inc color
>
>pop ecx
>
>loop L1
>
>exit
>
>main ENDP
>
>PrintRowOdd PROC uses ecx, color:BYTE
>
>mov ecx, columns / 2
>
>L1:
>
>INVOKE WriteColorChar, ' ', color, color
>
>INVOKE WriteColorChar, ' ', color, color
>
>INVOKE WriteColorChar, ' ', white, white
>
>INVOKE WriteColorChar, ' ', white, white
>
>loop L1
>
>ret
>
>PrintRowOdd ENDP
>
>PrintRowEven PROC uses ecx, color:BYTE
>
>mov ecx, columns / 2
>
>L1:
>
>INVOKE WriteColorChar, ' ', white, white
>
>INVOKE WriteColorChar, ' ', white, white
>
>INVOKE WriteColorChar, ' ', color, color
>
>INVOKE WriteColorChar, ' ', color, color
>
>loop L1
>
>ret
>
>PrintRowEven ENDP
>
>WriteColorChar PROC USES eax, char:BYTE, forecolor:BYTE, backcolor:BYTE
>
>INVOKE SetColor, forecolor, backcolor
>
>mov al, char
>
>call WriteChar
>
>ret
>
>WriteColorChar ENDP
>
>SetColor PROC, forecolor:BYTE, backcolor:BYTE
>
>movzx eax, backcolor
>
>shl eax, 4
>
>or al, forecolor
>
>call SetTextColor ; from Irvine32.lib
>
>ret
>
>SetColor ENDP
>
>END MAIN
And the error that I receive with this code is as such:
>1>Checkers.asm(44):error A2005: symbol redefinition : color
>
>1>Checkers.asm(44): error A2111: conflicting paramete
Hello, has anyone happened to know any information about the Java Apprentice from interapt & General Assembly? Or any experience about Interapt?
Briefly, it's like GA trains you three months about the IT knowledge. After training, Interapt will sign an one-year contract with you to work for them ( or their clients) and you can not refuse the employment offer or you will have to pay back for the training (more than $10000).
Would love to see your comments about this. Thank you!
(I am self-taught software engineering currently and I am thinking about this program since it's better if I am pushed to study structurally π)
I have the book AVR Microcontroller and Embedded Systems. And while there are code examples, I don't know how to compile the assembly code to the ATmega328P?
How to do that? I am using Linux and I would prefer using a command line interface for compilation to the board. + I'm looking to see if there is a way to debug the board and see the contents of the registers. I've looked all over online, but I can't seem to find how to do that.
I have everything updated. I get the following two errors duplicated: ld.lld: error: cannot open /data/data/com.termux/files/usr/lib/clang/13.0.0/lib/android/libclang_rt.builtins-arm-android.a: No such file or directory ld.lld: error: unable to find library -l:libunwind.a Thanks for the help.
I am having trouble understanding assemblies and namespaces and none of the courses i looked at go thst much into detail, can someone summarise what they are or share a video/course clearly explaining what they are and how they interact?
Hi,
I'm trying to save the contents currently written in the console window to a buffer. As far as I understand (and please correct me if I'm wrong), I need the ReadConsoleOutputCharacter Win32 API function for this. However, when invoking it, I get told that the symbol is undefined. In the same program, invoking another function like WriteConsole works.
To investigate, I checked the Smallwin.inc file that comes with the rest of the Irvine files, and for some reason the function isn't prototyped in there. It's strange because the function is listed in Table 11-2 of the book, the book explicitly says that all Win32 functions are supported by the Irvine library, and Smallwin.inc even prototyped the Write version of this very function!
Could someone help me figure out how I can use this function, maybe by adding the appropriate prototype to Smallwin.inc, or maybe using an Extern (which I'm not sure what that does yet but I've looked it up and I think it could help), or perhaps including something else in my program (currently I'm only including Irvine32.inc which in turn includes Smallwin.inc).
I'm coding with visual studio community 2019, if that helps.
Thanks in advance!
Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.